Commit 70bff9f
committed
fix: flaky test_start by waiting for in-flight job re-queue
The in-flight job is re-queued in the worker's CancelledError handler,
which stop() only awaits up to cancellation_hard_deadline_s. For the HTTP
proxy that re-queue crosses the network, so the new QUEUED status can land
just after the worker task returns, causing test_start to read ACTIVE under
CI load. Sleep briefly before refreshing.1 parent a8aa7d9 commit 70bff9f
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
0 commit comments