Преглед на файлове

Update task.py

The `throw` behaviour should be honored in 'eager' mode as well.
Feanil Patel преди 10 години
родител
ревизия
7bf736bfae
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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: