Repository navigation
fix: CLI flag clash, route CLI job mutations through the library, track detached tasks - #33
Merged
Merged
Conversation
…ueue; track webhook/stream tasks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 8, 2026
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.
Part of #31, part of #17
CLI (#31)
-qwas both--queueand the global--quiet, sospawn stats/spawn pending(andarchive ...,job purge) panicked in debug builds.--queuenow uses-Qon those subcommands; long flags unchanged. New unit test runsCli::command().debug_assert().job retry/cancel,batch retry/cancelandmaintenancedead-job cleanup / integrity fix no longer run raw UPDATE/DELETE with lowercase statuses. They select ids (read-only, capitalized statuses, bound queue name) and apply each change throughretry_job,retry_dead_job,mark_job_dead,delete_job, so they get the PR fix(queue): enforce the job lifecycle state machine (#19 C3/H2/H3/H5/H6/M1–M3) #29 transition guards. Jobs that changed state meanwhile are skipped and reported.queue,monitor,job purgefixed;maintenance checkpriority check fixed (integer column).DatabasePoolnow derivesClone.Detached tasks (#17 M6)
TaskTracker(JoinSet plus per-task supervisor): panics are logged and counted, tasks can be drained or aborted.WebhookManager::shutdown(grace)/StreamManager::shutdown(grace)(new) stop listeners, wait for in-flight deliveries/batches, abort stragglers;task_panics()added. Additive API only.Autoscaler zero interval (#17)
Already guarded (reaper and autoscaler intervals use
.max(1ms)inworker.rs); no change.Tests
clap debug_assert and
-Qparsing, selector/SQL unit tests, DB-backedjob_state_tests(Postgres and MySQL) forjob retry/cancelandbatch retry, TaskTracker tests, webhook/stream shutdown-drain, abort-after-grace and panic-observed tests.🤖 Generated with Claude Code