瀏覽代碼

[canvas] Fixes bug with chord upgrade in master.

Ask Solem 9 年之前
父節點
當前提交
5ed5541be2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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