Skip to content

Support gracefully draining workers with timeout - #154

Merged
joefreeman merged 1 commit into
mainfrom
drain-workers
Apr 17, 2026
Merged

joefreeman merged 1 commit into
mainfrom
drain-workers

Conversation

@joefreeman

Copy link
Copy Markdown
Collaborator

This updates workers to allow them to more gracefully drain executions when they're being stopped. This includes in --dev mode, after detecting file changes. The worker notifies the server that they're draining so they don't get assigned more executions, and then the executions in progress are given the configured time to complete before being killed.

@joefreeman
joefreeman merged commit 3ab750b into main Apr 17, 2026
8 checks passed
@joefreeman
joefreeman deleted the drain-workers branch April 17, 2026 17: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.

1 participant