Implement a Retry Mechanism for Celery Tasks#680
Merged
vincent-olivert-riera merged 2 commits intoline:masterfrom Jan 15, 2026
Merged
Implement a Retry Mechanism for Celery Tasks#680vincent-olivert-riera merged 2 commits intoline:masterfrom
vincent-olivert-riera merged 2 commits intoline:masterfrom
Conversation
6e7d7cd to
ba27931
Compare
6175489 to
37b6af9
Compare
37b6af9 to
11376d3
Compare
vincent-olivert-riera
approved these changes
Jan 14, 2026
Contributor
There was a problem hiding this comment.
LGTM
@hoangpn , can you rebase this branch on master?
We've introduced a base class for Celery tasks to incorporate a retry mechanism after reaching a processing time limit. This enhancement helps prevent Promgen's workers from slow processing or getting indefinitely stuck when handling time-consuming tasks.
We have implemented a dead-letter queue for Celery retried tasks. Retried tasks will be routed to a queue named "promgen_dlq" by setting CELERY_ENABLE_PROMGEN_DEAD_LETTER_QUEUE to True. By default, this feature is disabled.
11376d3 to
b107b17
Compare
Contributor
Author
|
@vincent-olivert-riera |
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.
We've introduced a base class for Celery tasks to incorporate a retry mechanism after reaching a processing time limit. This enhancement helps prevent Promgen's workers from slow processing or getting indefinitely stuck when handling time-consuming tasks.
An implementation of dead-letter queue has been also added.