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

shutdown method for jobs #37

Merged
merged 2 commits into from
Oct 27, 2024
Merged

shutdown method for jobs #37

merged 2 commits into from
Oct 27, 2024

Conversation

maxcountryman
Copy link
Owner

This provides a shutdown method for jobs via a new "job handle". Handles encapsulate the worker and scheduler tasks as well as a cancellation token that's passed down to the worker and scheduler.

We also introduce a method for setting the shutdown token on both the worker and scheduler.

This provides a shutdown method for jobs via a new "job handle". Handles
encapsulate the worker and scheduler tasks as well as a cancellation
token that's passed down to the worker and scheduler.

We also introduce a method for setting the shutdown token on both the
worker and scheduler.
@maxcountryman
Copy link
Owner Author

@kirillsalykin lmk if this approach works for you.

@kirillsalykin
Copy link

LGTM

@maxcountryman maxcountryman merged commit 2614a46 into main Oct 27, 2024
4 checks passed
@maxcountryman maxcountryman deleted the job-shutdown-method branch October 27, 2024 12:36
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.

2 participants