Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Context Propagation from Agent to Products #263

Merged
merged 13 commits into from
Nov 1, 2022

Conversation

nwchandler
Copy link
Collaborator

This merge adds a context field to Agent, which is then propagated downward to products. This sets the stage for implementation of context and timeouts/cancelation within runners. It also allows us to set custom timeouts/context within the CLI as well, by enabling custom context to be set on Agent.

Wherever exported methods/functions were updated to support context, the merge does this by migrating most logic to a "WithContext" function and then simply wrapping it with a background context in the previously existing function. This was done intentionally to maintain backwards compatibility.

Where unexported functions were updated, the function signatures were simply updated to now include a context.

@nwchandler nwchandler requested a review from a team October 31, 2022 20:47
@nwchandler nwchandler self-assigned this Oct 31, 2022
Copy link
Collaborator

@groovemonkey groovemonkey left a comment

Choose a reason for hiding this comment

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

This looks good!

@nwchandler nwchandler merged commit d144349 into main Nov 1, 2022
@nwchandler nwchandler deleted the nwchandler/cori2-539-context-propagation branch November 1, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants