-
-
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
Makes regen less greedy #6589
Makes regen less greedy #6589
Conversation
Might fix celery#4298. This was originally part of celery#6576.
@mjhoffman65 - apologies for the delay in getting #6542 in so you didn't need to worry about it. Just checking in quickly, can you tell me if this is significantly different from #6542 in any way other than rolling in the feedback from @auvipy about |
you can push on this pr branch too. both of you get credit O:) |
@maybe-sybr @auvipy I don't think this is different than #6542 other than the |
This pull request fixes 1 alert when merging f0d4f2e into f9b0231 - view on LGTM.com fixed alerts:
|
In which case I'll just note that we didn't change to using a |
FYI,
I missed that, I'll make another PR for it. |
@@ -141,6 +141,7 @@ def build_generator(): | |||
self.consumed_second_item = False | |||
g = regen(build_generator()) | |||
assert bool(g) | |||
assert g[0] == 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the test. I wasn't sure this was working correctly :)
* Makes regen less greedy Might fix celery#4298. This was originally part of celery#6576. * adds assertion to ensure regen item is not lost
Might fix #4298. This was originally part of #6576 (#6576 (review)). Related to #6542