Skip to content

fix(kanban): reset failure counters on unblock_task (#24022) - #28379

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-de55f5dd
May 19, 2026
Merged

fix(kanban): reset failure counters on unblock_task (#24022)#28379
teknium1 merged 1 commit into
mainfrom
hermes/hermes-de55f5dd

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvages #24022 by @bradhallett.

Resets consecutive_failures/last_failure_error in unblock_task UPDATE; confirmed missing in main (unblock_task only flips status). Small, well-isolated bug fix.

Cherry-picked onto current main with original authorship preserved via rebase merge.

When a task is manually unblocked (blocked → ready/todo), the
consecutive_failures counter and last_failure_error were left intact.
The next failure would immediately re-trip the circuit breaker because
the counter was still at or above the failure limit.

Reset both fields on unblock so the task gets a fresh retry budget.

Includes a regression test that verifies counters are zeroed.
@teknium1
teknium1 merged commit f042931 into main May 19, 2026
@teknium1
teknium1 deleted the hermes/hermes-de55f5dd branch May 19, 2026 03:16
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-de55f5dd vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8803 on HEAD, 8800 on base (🆕 +3)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4630 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants