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

Graceful shutdown #337

Merged
merged 6 commits into from
Aug 7, 2024
Merged

Graceful shutdown #337

merged 6 commits into from
Aug 7, 2024

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Aug 7, 2024

This expands on the current revised implementation in order to allow transient tasks to gracefully shutdown without being forcefully terminated.

On stopping a transient task, it is converted to a non-transient task, which prevents the event loop from exiting. This keeps the event loop alive.

If a task creates new tasks while it's finishing, those will be handled according to the existing logic.

Types of Changes

  • Bug fix.
  • New feature.

Contribution

@ioquatix ioquatix force-pushed the graceful-shutdown branch from 31067af to e3a38f8 Compare August 7, 2024 01:08
@ioquatix ioquatix force-pushed the graceful-shutdown branch from 9b4f631 to 6727879 Compare August 7, 2024 09:51
@ioquatix ioquatix merged commit 77059f1 into main Aug 7, 2024
54 of 58 checks passed
@ioquatix ioquatix deleted the graceful-shutdown branch August 7, 2024 09:57
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.

1 participant