Circuit breaker half-open state busy-loops queued tasks with a DB write per spin #306
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From audit #303 (significant).
In half-open,
Allow()returns false whileCooldownRemaining()returns 0 (internal/delivery/circuit_breaker.go:71-73,:85-87), socircuitBreakerBlockreschedules with delay 0 (internal/delivery/target_http.go:145-165): every queued task for the target spins throughretryChwith a DB status write per iteration for the whole probe window (up to 30s).Done: blocked tasks wait a non-zero delay (or until the probe resolves); no per-spin DB writes; test covers half-open with queued tasks.