You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Batch mode and live update follow-ups from the 2.1 bug hunt #94
Found by the bug hunt that produced #93; left out of it because they're lower severity or need design work. None of them needs a breaking change.
FailFast batches with claimed jobs. When a JobBatch with PartialFailureMode::FailFast fails, only its Pending jobs are cancelled. Jobs of that batch that a batch-mode worker has claimed but not started are Running, so they still run. Fix: the worker should check, before starting a held job, whether its batch has failed (as fix: batch-mode pause, weighted batch claim loss, undecodable rows in the reaper and MySQL claims #93 does for pause), and if so cancel or release the job.
Dashboard live updates miss Running → Pending transitions (retries, reaper requeues, batch releases). recent_job_changes (hammerwork-web/src/api/history.rs) only looks at the created/started/completed/failed/timed-out timestamps, and none of them changes on those writes. The bundled dashboard still refreshes through QueueUpdate, but other WebSocket consumers miss the transition.
Batch-mode processing time includes waiting time.started_at is the claim time, so statistics and started_at-based durations for held jobs include the time they waited in the batch. Record the actual start, or measure duration from when the handler starts.
A held job skipped as lost doesn't refund its rate-limit token.
Each fix needs a regression test, with timing margins that hold up under the instrumented coverage run.
Activity
CodingAnarchy commentedon Oct 11, 2026
More findings from the simplification pass (#95), all non-breaking:
CLI
backup.rs(~322/423) andmigration statusconnect withDatabasePool::connect, ignoringconnect_timeout_secs; they should useconnect_with_config.maintenance vacuumreports the counts from before the delete as "Deleted N" and ignores the number of rows actually affected.monitor'sstatus_icontable has no entries forretryingortimed_out.webhook update --namecan rename a webhook to a name that already exists, althoughaddrejects duplicates.maintenance(~356): the "no update for N hours" text actually filters onstarted_at.Web
stats.rs(~350) andsystem.rs(~349):uptime_seconds() as u64wraps if the clock goes backwards (stats.rs~423 already clamps).jobs.rsonly treats lowercase "asc" as ascending.Tests
batch_tests.rs(~244) computes an ordering check and never asserts it.worker_batch_tests::test_batch_statistics_trackingasserts nothing about the statistics.result_storage_tests,result_config_test,jobrow_query_tests,test_mysql_concurrent_dequeue.encryption_basic_tests.rs(~893) changesVAULT_TOKENwithunsafewhile other tests run in parallel, and doesn't restore it if the test panics.🤖 Generated with Claude Code
fix: batch-mode FailFast, start times and token refunds; live Running…