Make deliveries refused while half-open wait a cooldown (closes #306) #330

Merged
clawbot merged 1 commits from issue-306-half-open-busy-loop into next 2026-09-29 05:48:21 +02:00
1 Commits
Author SHA1 Message Date
sneak 237d4c3276 Make deliveries refused while half-open wait a cooldown (closes #306)
check / check (push) Successful in 4m59s
While the breaker was half-open, Allow refused every delivery but the
probe and CooldownRemaining returned zero, so each queued task for the
target went straight back onto the retry channel and rewrote its status
on every pass until the probe finished.

CooldownRemaining now returns the whole cooldown while half-open, so a
refused delivery waits that long. A refused delivery already at
retrying is not written again, so the retry counter now moves only
when a refusal moves a delivery into retrying.

Model: opus-5-5
2026-09-29 02:56:16 +00:00