feat(DLQ): implement Dead Letter Queue (DLQ) #4
Merged
Conversation
- Add execution_dlq table with job metadata
- Move failed executions to DLQ after max retries
- Add ListDLQ and RetryFromDLQ store methods
- Add GET /executions/dlq and POST /executions/{id}/retry endpoints
- Track retry lineage via retried_from column
- Move ListDLQ and RetryFromDLQ into JobStore interface - Remove separate UserStore interface - Clean up handler store embedding
- Add 'dlq list' and 'dlq retry' commands to CLI - Add client methods for DLQ endpoints - Fix: ensure retried executions use UTC timestamps in Postgres
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4 +/- ##
==========================================
- Coverage 65.78% 65.37% -0.42%
==========================================
Files 33 35 +2
Lines 1555 1961 +406
==========================================
+ Hits 1023 1282 +259
- Misses 466 587 +121
- Partials 66 92 +26 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
This PR implements the full Dead Letter Queue (DLQ) feature to handle permanently failed jobs, preventing them from clogging the active queue.
Key Changes
Backend Logic:
execution_dlqtable to isolate jobs that exceed the max retry limit.API:
GET /executions/dlqto list failed jobs.POST /executions/dlq/{id}/retryto retry a specific job.CLI:
jobctl dlq listcommand to inspect the queue.jobctl dlq retry <id>command to manually retry jobs.