Procházet zdrojové kódy

Merge pull request #2607 from feanil/patch-1

Retries should behave the same in eager and not eager mode.
PMickael před 9 roky
rodič
revize
abca403c94
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      celery/app/task.py

+ 2 - 0
celery/app/task.py

@@ -627,6 +627,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: