Replies: 4 comments 5 replies
-
Hey @jberclaz, I think this might be related to the fix from #5958 which will be part of the 5.3 release. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi @Nusnus , thanks for your answer. I tried with the latest from Here is what I did to test it:
|
Beta Was this translation helpful? Give feedback.
-
I have a lot on my plate right now so I can't promise I'll get to this soon, but it's good to confirm the bug exists, thank you. You're welcome to attempt to fix it yourself if you wish and send me a PR for review. Posting here such a test case can accelerate the fix, but the given workaround can also be enough for the moment. P.S |
Beta Was this translation helpful? Give feedback.
-
Issue
I've been experiencing an issue with Celery pipelines involving
group
and I believe it may be the symptom of a bug.I'm creating a pipeline starting with a group, followed by a few serial tasks:
The same pipeline can also be declared as:
In both cases, the pipeline executes properly. However, when calling
pipeline.apply_async()
, the returnedAsyncResult
does not contain the whole pipeline and skipstask2
. In other words,apply_async
returns anAsyncResult
representingtask3
, whose parent is the group task.Workaround
I found a workaround to this issue, by adding a single task in front of the pipeline:
In this case, calling
pipeline.apply_async()
returns the correct chain of tasks, i.e.task3 -> task2 -> group_task -> task0
.Version
I'm using Celery 5.2.7 on Linux with RabbitMQ as broker and Redis as backend.
Beta Was this translation helpful? Give feedback.
All reactions