Commit 81d5975
committed
Keep semaphore slots held while blocked jobs are enqueued in concurrency test
"run several jobs over the same record limiting concurrency" claims all
three semaphore slots with jobs A, B and C, then enqueues D-H expecting
all five to block. A and B only paused for 0.5 seconds, so on a slow CI
runner they could finish while D-H were still being inserted, freeing a
slot that let some of them run instead of blocking and failing the +5
BlockedExecution assertion.
Give A and B enough pause to outlive the enqueue window, and bump C
accordingly so it still saves last.
Related to #6021 parent 7f59932 commit 81d5975
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
0 commit comments