Explorar o código

Task: Do not requeue if retry fails.

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
1cc9cdf6b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/app/task.py

+ 1 - 1
celery/app/task.py

@@ -670,7 +670,7 @@ class Task(object):
         except Exception as exc:
             if is_eager:
                 raise
-            raise Reject(exc, requeue=True)
+            raise Reject(exc, requeue=False)
         ret = Retry(exc=exc, when=eta or countdown)
         if throw:
             raise ret