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

fix: wait for tasks on graceful termination #51

Merged
merged 5 commits into from
Jun 18, 2024

Conversation

abelanger5
Copy link
Contributor

Adds support for awaiting all running tasks when a sigint/sigterm handler is received.

Note that Unregister (internally calling Unsubscribe) is called as early as possible - there need to be some small changes to the Hatchet engine so that we track a shutdown state on the workers, so that new tasks stop being assigned but old tasks continue to be assigned to the worker.

@abelanger5 abelanger5 merged commit f9b61a6 into main Jun 18, 2024
2 checks passed
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