You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Canvas: Allow the same Signature to trigger two Chords #4562
This is wrong because C1 will run twice! I need it to run only once.
B1, C1 and D1 should start at the same time.
I can workaround by freezing C1 signature before passing to the chords:
...
c1=myfunc.s()
c1.freeze()
...
However, the tasks can trigger only one Chord on completion, from the code I saw up to now.
Is there a way that I had not found yet?
Expected behavior
B1, C1 and D1 starts
On B1 and C1 finished, E2 starts
On D1 and C1 finished, F2 starts
Actual behavior
B1, C1, D1 starts
Another C1 starts
On B1 and first C1 finished, E2 starts
On D1 and second C1 finished, F2 starts
Checklist
Celery version:
$ celery --version
4.1.0 (latentcall)
I have verified that the issue exists against the master branch of Celery.
U can use two another patterns. First slower than expects (F2 executes after E2), but can be implemented only on celery canvases.
Second has expected execution time, but more difficult in code: need catch results of first group and send new group task.
@2miksyn You are right, it is possible. However, not always applicable.
I am talking about very long tasks. For exemple, if D and F takes about 5h and B and E takes only 1h, then the total time goes from 6h to 11 on your 1st proposal, and to 10 on the 2nd proposal.
Even it was about little tasks, this means the full DAG taking from 600ms to 1sec, only on this exemple. Its a lot and can be worst, depending on your scenario.
Activity
alanjds commentedon Feb 27, 2018
Just found that I may not be the 1st to ask for it: #893
miksyn commentedon Mar 7, 2018
U can use two another patterns. First slower than expects (F2 executes after E2), but can be implemented only on celery canvases.


Second has expected execution time, but more difficult in code: need catch results of first group and send new group task.
alanjds commentedon Mar 7, 2018
@2miksyn You are right, it is possible. However, not always applicable.
I am talking about very long tasks. For exemple, if D and F takes about 5h and B and E takes only 1h, then the total time goes from 6h to 11 on your 1st proposal, and to 10 on the 2nd proposal.
Even it was about little tasks, this means the full DAG taking from 600ms to 1sec, only on this exemple. Its a lot and can be worst, depending on your scenario.