Commit ff6db49
committed
fix(run-engine): reschedule batch drain on candidateIds count, not pendingRuns
After the ClickHouse migration, pendingRuns.length is post-status-guard;
runs that have already left PENDING_VERSION between the CH lookup and
the Postgres refetch get filtered out. Using it as the more-work signal
under-reports when more candidates exist on the worker and stops short.
Switch to candidateIds.length, which is the raw lookup result.1 parent 48c2bc4 commit ff6db49
1 file changed
Lines changed: 6 additions & 2 deletions
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
| |||
0 commit comments