Explorar el Código

[canvas] Fixes bug with chord upgrade in master.

Ask Solem hace 9 años
padre
commit
5ed5541be2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/canvas.py

+ 1 - 1
celery/canvas.py

@@ -488,11 +488,11 @@ class chain(Signature):
                 # signature instead of a group.
                 tasks.pop()
                 results.pop()
-                prev_res = prev_prev_res
                 task = chord(
                     task, body=prev_task,
                     task_id=prev_res.task_id, root_id=root_id, app=app,
                 )
+                prev_res = prev_prev_res
             if is_last_task:
                 # chain(task_id=id) means task id is set for the last task
                 # in the chain.  If the chord is part of a chord/group