Skip to content

tests: add worker cleanup method to interface#3954

Merged
jedevc merged 1 commit intomoby:masterfrom
jedevc:tests-add-worker-cleanup
Jun 20, 2023
Merged

tests: add worker cleanup method to interface#3954
jedevc merged 1 commit intomoby:masterfrom
jedevc:tests-add-worker-cleanup

Conversation

@jedevc
Copy link
Copy Markdown
Member

@jedevc jedevc commented Jun 16, 2023

This is so that we can allow workers to provision and manage resources that have a lifetime greater than a single sandbox.

Although none of our current workers currently implement this method, we want to implement this for buildx downstream to allow reusing docker daemons between docker-container workers.

Copy link
Copy Markdown
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: is Close() error more standard naming convention for this functionality?

This is so that we can allow workers to provision and manage resources
that have a lifetime greater than a single sandbox.

Although none of our current workers currently implement this method,
we want to implement this for buildx downstream to allow reusing docker
daemons between docker-container workers.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc jedevc force-pushed the tests-add-worker-cleanup branch from 6ef0e1f to a629467 Compare June 20, 2023 10:21
@jedevc
Copy link
Copy Markdown
Member Author

jedevc commented Jun 20, 2023

nitpick: is Close() error more standard naming convention for this functionality?

SGTM. No strong opinions as to naming here.

@jedevc jedevc merged commit 2d91ddc into moby:master Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants