Skip to content

Commit

Permalink
Fix ValueError in chord with single task header (celery#3608)
Browse files Browse the repository at this point in the history
  • Loading branch information
harkylton authored and ask committed Dec 2, 2016
1 parent b535e3a commit fe2c47d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celery/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ def apply_async(self, args=(), kwargs={}, task_id=None,
if len(self.tasks) == 1:
# chord([A], B) can be optimized as A | B
# - Issue #3323
return (self.tasks[0].set(task_id=task_id) | body).apply_async(
return (self.tasks[0] | body).set(task_id=task_id).apply_async(
args, kwargs, **options)
# chord([A, B, ...], C)
return self.run(tasks, body, args, task_id=task_id, **options)
Expand Down

0 comments on commit fe2c47d

Please sign in to comment.