Commit f28b02e
committed
fix(core): keep BLOCKED tasks under reconciliation, and stop the cache guard no-op'ing (#1032)
CI review on #1079.
The reconciliation sweep selected tasks whose batch result is None or RUNNING.
Once a task's first attempt reported BLOCKED, that entry is neither — and
nothing clears it mid-batch — so the task was excluded from every later sweep.
That silently disabled BOTH the pre-existing blocker-resolved requeue and the
blocked-task GitHub check added two commits ago: the code ran, nothing ever
reached it. A blocked task is precisely the one whose state changes from
outside, whether by a human answering or by the linked issue being closed.
BLOCKED now joins None/RUNNING; COMPLETED and FAILED stay excluded.
Cache runaway guard: clearing only _open_until does nothing once _closed alone
reaches the cap, so past that point the guard fired on every lookup and freed
nothing. Now clears _closed too when it is the half at the cap.
Both pinned by tests, including one asserting a COMPLETED task is still
excluded from sweeps.1 parent 35f0c3e commit f28b02e
3 files changed
Lines changed: 83 additions & 3 deletions
File tree
- codeframe/core
- tests/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2209 | 2209 | | |
2210 | 2210 | | |
2211 | 2211 | | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
2212 | 2219 | | |
2213 | 2220 | | |
2214 | | - | |
2215 | | - | |
| 2221 | + | |
2216 | 2222 | | |
2217 | 2223 | | |
2218 | 2224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
349 | 417 | | |
350 | 418 | | |
351 | 419 | | |
| |||
0 commit comments