Skip to content

feat: circuit breaker half-open timer and backoff delay helper - #15

Merged
skyeng2 merged 2 commits into
mainfrom
feat/breaker-seconds-and-backoff-helper
Aug 20, 2026
Merged

feat: circuit breaker half-open timer and backoff delay helper#15
skyeng2 merged 2 commits into
mainfrom
feat/breaker-seconds-and-backoff-helper

Conversation

@skyeng2

@skyeng2 skyeng2 commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add read-only CircuitBreaker.seconds_until_half_open for recovery timing.
  • Extract compute_backoff_delay and use it from retry_with_backoff without changing delay/Retry-After behavior.

Test plan

  • python3 -m unittest discover -s tests -v
  • CI green on PR

Made with Cursor

skyeng2 and others added 2 commits August 20, 2026 17:58
Expose a read-only remaining recovery timer for open breakers.

Co-authored-by: Cursor Agent <cursoragent@users.noreply.github.com>
Share exponential delay math while keeping Retry-After handling in retry_with_backoff.

Co-authored-by: Cursor Agent <cursoragent@users.noreply.github.com>
@skyeng2
skyeng2 merged commit 84e5a75 into main Aug 20, 2026
2 checks passed
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.

1 participant