-
-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add attempt_count to limit the number of times a filed task will be re-attempted #466
Conversation
Codecov Report
@@ Coverage Diff @@
## master #466 +/- ##
==========================================
+ Coverage 91.03% 91.18% +0.15%
==========================================
Files 46 47 +1
Lines 3022 3051 +29
==========================================
+ Hits 2751 2782 +31
+ Misses 271 269 -2
Continue to review full report at Codecov.
|
This reverts commit 3b2f444.
I'll review this in the next days. but I see you've been adding some more commits. Should I postpone reviewing it? |
cool! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for the work on this. It was never on my priority list cause all the brokers I work with have their own max retry setting independent of django-q.
For now I would remove the attempt count from the fail admin, until at some point we have individual attempt counts per task.
thanks- |
You could also make it optional with a config setting for example.
Or like you said; add some docs on how to customize the admin.
…On Thu, Aug 13, 2020 at 4:21 PM timomeara ***@***.***> wrote:
Looks good. Thanks for the work on this. It was never on my priority list
cause all the brokers I work with have their own max retry setting
independent of django-q.
For now I would remove the attempt count from the fail admin, until at
some point we have individual attempt counts per task.
thanks-
i'll push that in a few
i added it to the admin because i thought it'd be useful in setups that
have high attempt_count and retry values.
maybe a little addition to the readme that shows how to customize the
admin would be nice
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#466 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6AQNLE4CEPASQIQXGKFULSAPZHTANCNFSM4P3GSG6Q>
.
|
…dd admin ui customization to docs
Limit the number of retries for a failed task.
attempt_count = models.IntegerField(default=0)
to Task modelattempt_count
to configurationcluster.save_task
and acknowledge the task whenattempt_count is > 0 and task.attempt_count == Conf.ATTEMPT_COUNT