-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
regen() duplicates any non-list and non-tuple sequence #6786
Comments
Hey @Suor 👋, We also offer priority support for our sponsors. |
Quick bisect suggest this has been broken since I've got a bit of random time so I'll put up a PR for this shortly |
* fix: `regen.data` property now marks self as done Fixes: #6786 * improv: Don't concretise regen on `repr()` This ensures that the generator remains lazy if it's passed to `repr()`, e.g. for logging or something. * test: Add failing test for regen duping on errors * refac: Remove unnecessary try in `regen.data`
* fix: `regen.data` property now marks self as done Fixes: #6786 * improv: Don't concretise regen on `repr()` This ensures that the generator remains lazy if it's passed to `repr()`, e.g. for logging or something. * test: Add failing test for regen duping on errors * refac: Remove unnecessary try in `regen.data`
…ry#6789) * fix: `regen.data` property now marks self as done Fixes: celery#6786 * improv: Don't concretise regen on `repr()` This ensures that the generator remains lazy if it's passed to `repr()`, e.g. for logging or something. * test: Add failing test for regen duping on errors * refac: Remove unnecessary try in `regen.data`
Checklist
master
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 master 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).
master
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
Possible Duplicates
Environment & Settings
Celery version:
5.1.0 (sun-harmonics)
celery report
Output:Steps to Reproduce
When using
.map()
with non-list, non-tuple sequence passed all the items are processed 3 times:Required Dependencies
No dependencies
Python Packages
pip freeze
Output:Other Dependencies
N/A
Minimally Reproducible Test Case
Expected Behavior
Expected for
regen()
to not duplicate entires and for.map()
to run each item once.Actual Behavior
See above.
The text was updated successfully, but these errors were encountered: