Repository navigation
start chord header tasks as soon as possible - #6576
Conversation
|
This pull request introduces 1 alert when merging 2b9524c into 3546059 - view on LGTM.com new alerts:
|
2b9524c to
f049a12
Compare
@auvipy Thanks! Just to make sure I understand, split this PR into 2: first one will replace #6542 and include only the |
yes. |
|
also, check the conflicts please |
|
@mjhoffman65 Thank you very much for the contribution. |
f049a12 to
cd23981
Compare
Might fix celery#4298. This was originally part of celery#6576.
Might fix celery#4298. This was originally part of celery#6576.
|
This pull request fixes 1 alert when merging cd23981 into eac0c12 - view on LGTM.com fixed alerts:
|
cd23981 to
bea1729
Compare
|
This pull request fixes 2 alerts when merging bea1729 into eac0c12 - view on LGTM.com fixed alerts:
|
thedrow
left a comment
There was a problem hiding this comment.
I need to review this in detail.
In the meantime, I suspect one thing has to be changed.
bea1729 to
a4f2116
Compare
|
rebase please |
a4f2116 to
b6a2696
Compare
👍 rebased |
|
A quick look at the changes to the redis backend make me think that we can't land this in a patch release since it introduces new key dependencies when handling chords in flight. I'm yet to review in full. |
|
@maybe-sybr Feel free to move the milestone to 5.1.0 if you deem it necessary. |
|
@mjhoffman65 If you'd like to contribute more, we can add you to our team. |
I think it's still too early. |
|
This pull request fixes 1 alert when merging cdbd8f9 into 5baf972 - view on LGTM.com fixed alerts:
|
Fixes celery#3012. Previously, subtasks were not submitted to the broker for execution until the entire generator was consumed.
Co-authored-by: Omer Katz <[email protected]>
Co-authored-by: Omer Katz <[email protected]>
Co-authored-by: Omer Katz <[email protected]>
thedrow
left a comment
There was a problem hiding this comment.
Can you please take a look into the test failure?
|
This pull request fixes 1 alert when merging 1d4e9f9 into e913312 - view on LGTM.com fixed alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #6576 +/- ##
==========================================
+ Coverage 70.41% 70.44% +0.02%
==========================================
Files 138 138
Lines 16446 16478 +32
Branches 2064 2075 +11
==========================================
+ Hits 11581 11608 +27
- Misses 4662 4666 +4
- Partials 203 204 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Should be fixed now |
I'd love to contribute more. No worries about joining the team if it is too early. But let me know what I can help on next. |
|
thanks a lot to all of you who were involved to make this PR merge <3 |
* Makes regen less greedy Might fix celery#4298. This was originally part of celery#6576. * adds assertion to ensure regen item is not lost
* start chord header tasks as soon as possible Fixes celery#3012. Previously, subtasks were not submitted to the broker for execution until the entire generator was consumed. * Update celery/canvas.py as per review Co-authored-by: Omer Katz <[email protected]> * keeps chord_length terminology consistent * refactors unit test * Update celery/canvas.py Co-authored-by: Omer Katz <[email protected]> * Update celery/canvas.py Co-authored-by: Omer Katz <[email protected]> * Fix formatting. * adds comments and fixes test Co-authored-by: Asif Saif Uddin <[email protected]> Co-authored-by: Omer Katz <[email protected]>
| # We are draining from a geneator here. | ||
| tasks1, tasks2 = itertools.tee(self._unroll_tasks(self.tasks)) | ||
| results = regen(self._freeze_tasks(tasks1, group_id, chord, root_id, parent_id)) | ||
| self.tasks = regen(x[0] for x in zip(tasks2, results)) |
There was a problem hiding this comment.
Hi @mjhoffman65 , I'm a new project member.
I am trying to understand what you did here, I would appreciate if you could clarify it for me.
I don't get why you zipped tasks2 with results only to get x[0], resulting in a generator with only tasks2's tasks. Why did you write this and not self.tasks = regen(tasks2)?
TIA :)
Fixes #3021 . Previously, header tasks were not submitted to the broker for
execution until the entire generator was consumed.
Continuation of #6112 and much of this was originally pulled from #3043.
Update: this was split into 2 PRs per below review: #6589 should be merged first. This has been rebased on top of that branch.