-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chain of groups causing duplicate tasks #8180
Comments
Hey @deklanw 👋, We also offer priority support for our sponsors. |
I just ran into this as well and found this bug report after hours of debugging and questioning my sanity. @deklanw Thank you for sharing the workaround; putting an empty dummy task at the beginning really does seem to fix it! |
I am still experiencing this problem with Celery 5.4.0. I'll do more testing and report back later this week. |
Here is an example that causes the duplicate execution behavior:
Output:
As you can see, tasks 6, 7 and 8 run twice. @Nusnus should I file a separate bug for this one? |
No, I’ll reopen this one. Thank you for reporting this! I’ve been working hard on crushing canvas bugs in the last year so I’ll try to prioritize it high. |
Fixed in #9021 |
Checklist
main
branch of Celery.contribution guide
on reporting bugs.
for similar or identical bug reports.
for existing proposed fixes.
to find out if the bug was already fixed in the main branch.
in this issue (If there are none, check this box anyway).
Mandatory Debugging Information
celery -A proj report
in the issue.(if you are not able to do this, then at least specify the Celery
version affected).
main
branch of Celery.pip freeze
in the issue.to reproduce this bug.
Optional Debugging Information
and/or implementation.
result backend.
broker and/or result backend.
ETA/Countdown & rate limits disabled.
and/or upgrading Celery and its dependencies.
Related Issues and Possible Duplicates
Related Issues
#8062
Possible Duplicates
Environment & Settings
Celery version: 5.3.0b2
celery report
Output:Steps to Reproduce
Required Dependencies
Python Packages
pip freeze
Output:Other Dependencies
N/A
Minimally Reproducible Test Case
Expected Behavior
A chain of groups to only execute each group once.
Actual Behavior
A chain of groups executes some of the latter groups twice. Putting a dummy task at the front of the chain fixes (See minimal reproduction).
The text was updated successfully, but these errors were encountered: