-
-
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
Avoid retrying failed tasks #238
Comments
It's related to this issue: #194 |
Balletie
added a commit
to Balletie/django-q
that referenced
this issue
Mar 9, 2018
If a task fails with an exception, it is retried until it succeeds. This is contrary to what is said in the documentation: under the "Architecture" section, heading "Broker" it says that even when a task errors, it's still considered a successful delivery. Failed tasks never get acknowledged however, thereby being retried after the timeout period. See also issues Koed00#238 and Koed00#194. This patch adds an option to acknowledge failures, thereby closing issue Koed00#238. Issue Koed00#194 would require some more work. The default of this option is set to `False`, thereby maintaining backwards compatibility.
Closing this issue as requested in the pr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently the default behaviour for failed task is to queue a new task a retry it after certain time.
Is there any way to avoid retrying failed tasks? I mean, if a task raised an error for some reason, do not queue it again, and just display it in the list of "Failed tasks".
It happened to me that a task kept failing for a long time and it was queued again and again.
Thanks!
The text was updated successfully, but these errors were encountered: