Add worker lifecycle controls - #12
Closed
cmilesio wants to merge 4 commits into
Closed
Conversation
cmilesio
force-pushed
the
feat/worker-maintenance
branch
from
August 16, 2026 23:40
647e7bf to
8004ba6
Compare
Member
Author
|
Maintenance mode is now intentionally scoped to HTTP traffic, so GoForj no longer depends on these queue lifecycle changes. Closing this PR rather than landing an unrelated queue redesign; any future worker controls should be designed and reviewed independently. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds PauseWorkers and ResumeWorkers to the high-level queue runtime so applications can stop consumer intake without closing producer handles.
Why
Operational maintenance needs to stop work before another backend claim without turning leases into failures, losing accepted in-memory jobs, or making dispatch unavailable. A worker-level lifecycle gives applications one reliable contract across local, SQL, and external queue drivers while preserving normal dispatch behavior and existing queue handles.