Skip to content

Conversation

@AbdulRahmanAlHamali
Copy link
Contributor

fixes #834, but doesn't fully replace the concept of error_timeout (as the issue suggests).

Instead, the user still provides error_timeout, and the feature is just to provide a boolean that allows us to creep towards it. Once we reach it, we go back to the original behaviour.

I also allow the user to specify the starting point, and the exponential factors. Tbh I doubt people would change those values that often, but wanted to keep this option available since this is an open source library

@AbdulRahmanAlHamali AbdulRahmanAlHamali force-pushed the exponential-backoff-error-timeout branch 2 times, most recently from 1b581d1 to f627e01 Compare November 8, 2025 00:58
@AbdulRahmanAlHamali AbdulRahmanAlHamali force-pushed the exponential-backoff-error-timeout branch from f627e01 to 4abbaaa Compare November 8, 2025 01:52
Copy link

@Aguasvivas22 Aguasvivas22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Though it would've been great to have the testing setup from pid-take-2 to help visualize the differences with and without the backoff feature in difference scenarios.

@AbdulRahmanAlHamali
Copy link
Contributor Author

Agreed. Maybe we can port the classic circuit breaker experiments that we already have into main

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.

Implement exponential backoff to replace error_timeout

3 participants