-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete
createServicePolicy
(#5149)
This commit is a continuation of a previous commit which added a utility function for use in service classes which ensures that they follow the circuit breaker and retry patterns. This commit completes the function by adding: - `retryFilterPolicy`, which allows for retrying certain errors and not handling others. - `maxRetries`, which allows for giving up early before the max consecutive failures is reached. Note that because this can combine with `maxConsecutiveFailures`, it adds a bunch of other code paths and so this requires adding a lot of new tests.
- Loading branch information
Showing
6 changed files
with
2,286 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.