Repository navigation
Commit ec42a7e
Select each queue once when several entries in the list match it
A worker listing queue_* and queue_b*, or queue_b* and queue_b1, polled
queue_b1 twice on every pass and counted its jobs twice. Prefix matches
were never removed from the remaining names, because `queues -= matches`
only reassigned the block's local variable, and a queue matched both by
name and by a prefix came back from both lookups.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 3b0506d commit ec42a7e
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
199 | 206 | | |
200 | 207 | | |
201 | 208 | | |
| |||
0 commit comments