Skip to content

Commit

Permalink
Avoid duplicating chains in chords (#3779)
Browse files Browse the repository at this point in the history
* Avoid duplicating chains in chords

* Add Ryan Hiebert to contributors
  • Loading branch information
ryanhiebert authored and thedrow committed Apr 8, 2017
1 parent 522ef61 commit eb08d0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Expand Up @@ -231,3 +231,4 @@ Alejandro Pernin, 2016/12/23
Yuval Shalev, 2016/12/27
Morgan Doocy, 2017/01/02
Arcadiy Ivanov, 2017/01/08
Ryan Hiebert, 2017/01/20
3 changes: 3 additions & 0 deletions celery/canvas.py
Expand Up @@ -1282,6 +1282,9 @@ def run(self, header, body, partial_args, app=None, interval=None,
group_id=group_id, chord=body, root_id=root_id).results
bodyres = body.freeze(task_id, root_id=root_id)

# Chains should not be passed to the header tasks. See #3771
options.pop('chain', None)

parent = app.backend.apply_chord(
header, partial_args, group_id, body,
interval=interval, countdown=countdown,
Expand Down

0 comments on commit eb08d0c

Please sign in to comment.