Repository navigation
fix: dashboard listing/stats/cleanup, CLI failed states and default queue, TestQueue parity - #108
Merged
Merged
Conversation
Merged
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.
Fixes #103
Fixes #104
Fixes #106
#103 dashboard
/api/jobs?status=lists any status (Pending incl. scheduled later, Running, Completed, Failed, Dead, TimedOut, Retrying) via new defaultedJobHistory::jobs_with_status(PG and MySQL implemented). Test:test_list_jobs_filters_by_any_status; DB checks intest_job_history_queries_*. Notejobs::routesnow needsT: JobHistorylike the other routes.time_range=START,ENDandqueues=a,bdecode from a query string (JSON forms still work);queuesnow filters andgranularity=hour|day|weekis honoured (invalid value is a 400). Tests:test_stats_query_decodes_from_a_query_string,test_stats_routes_accept_query_string_filters,test_roll_up_*. Documented in hammerwork-web/README.md.cleanup: the real run now usesdelete_jobs(FinishedKind::Dead), the same predicate as the dry-run count. Ignored DB teststest_dead_job_without_failed_at_*.#104 CLI
maintenance vacuumandbackup createtreat failed as Failed|Dead|TimedOut. Tests: SQL unit tests and extended DB roundtrips.default_queue/HAMMERWORK_DEFAULT_QUEUEis the fallback forjob enqueue,batch enqueue,cron create(--queuenow optional, clear error otherwise).queue clear|pause|resumestill require an explicit queue (deliberate). Test:resolve_queue_*, parse tests.#106 TestQueue
retry_atmoved onto the mock clock;get_batch_status/restore_archived_jobreturnJobNotFound,get_queue_statson an unknown queue returns zero counts, as the PG/MySQL backends do. Tests:retry_outcome_is_moved_onto_the_mock_clock,unknown_ids_and_queues_match_the_database_backends.CHANGELOG (Unreleased) and READMEs updated. fmt, clippy (workspace + feature matrix), workspace tests and PG/MySQL ignored suites pass locally.
🤖 Generated with Claude Code