Skip to content

Circuit breaker on failing jobs#17

Open
JensRantil wants to merge 8 commits into
99designs:masterfrom
JensRantil:circuit-breaker
Open

Circuit breaker on failing jobs#17
JensRantil wants to merge 8 commits into
99designs:masterfrom
JensRantil:circuit-breaker

Conversation

@JensRantil

@JensRantil JensRantil commented Nov 5, 2025

Copy link
Copy Markdown

This adds support for a circuit breaker, which will pause reserving new jobs for period of time if jobs are starting to fail. This is a useful feature to avoid hammering downstream resources if jobs are failing.

Fixes #13.

This is a preparatory commit to start using a circuit breaker.
The field is always set to true. Unnecessary.
...such that I can easily implement a no-op implementation without too
many methods.
Avoids a bunch of nil checks.
...which will allow us to create a cb based on flags.
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.

Circuit breaker for failing downstream resources

1 participant