Explorar o código

Update task.py

The `throw` behaviour should be honored in 'eager' mode as well.
Feanil Patel %!s(int64=10) %!d(string=hai) anos
pai
achega
7bf736bfae
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      celery/app/task.py

+ 2 - 0
celery/app/task.py

@@ -595,6 +595,8 @@ class Task(object):
             # if task was executed eagerly using apply(),
             # then the retry must also be executed eagerly.
             S.apply().get()
+            if throw:
+                raise ret
             return ret
 
         try: