FIX generator unordered lock - #1789
Conversation
Co-authored-by: Thomas Moreau <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1789 +/- ##
==========================================
- Coverage 94.21% 94.18% -0.04%
==========================================
Files 46 46
Lines 7922 7926 +4
==========================================
+ Hits 7464 7465 +1
- Misses 458 461 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@Nanored4498 thank you for the PR I suggest not using a lock there. Instead, is there a way to select an item from the set, without removing said item, and without this Maybe by |
|
Reading through the |
I'm not sufficiently used to python ^^ It would work because of the GIL, right? |
|
TY for the update @Nanored4498 Yes pop and add are atomics, but it's not required for the logic to be sound here. This bug is related to concurrency, but is less caused by concurrency, than by the wrong usage of I'd be +1 on this change, could it ship in a patch release ? The bug can really trigger at any time for any user workload :-/ |
|
@Nanored4498 could you add an entry in the changelog? The windows failure seems to be unrelated, so we should merge this one. |
This is done ;) |
#1788 reported some issues with the set of jobs (for unordered generators) being concurrently modified and accessed. So I just added a lock to avoid that.
Closes: #1788