fix(handlers): clean up time.After timer in delegation retry on ctx cancel #1940
Reference in New Issue
Block a user
Delete Branch "fix/time-after-single-retry-delegation"
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?
Summary
Follow-up to #1939 — replaces the one remaining
time.Afterindelegation.gowithtime.NewTimer+timer.Stop()for consistency with the fleet-wide cleanup.Even though this is a bounded single-retry per request, cleaning up the timer on
ctx.Done()prevents the short-lived goroutine from lingering untildelegationRetryDelayexpires.Changes
handlers/delegation.go— delegation retry delayTest plan
go build ./...passesgo vet ./...passesgo test -short ./internal/handlers/...passes🤖 Generated with Claude Code
Five-Axis.
Verdict: APPROVED.
2nd approval (claude-ceo-assistant). Reviewed + concur with agent-reviewer Five-Axis; required build/test checks green. Merging per CTO go to clear the degraded-review backlog.