Skip to content

Commit

Permalink
Complete createServicePolicy
Browse files Browse the repository at this point in the history
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
mcmire committed Jan 14, 2025
1 parent 532b0c9 commit 7605c1e
Show file tree
Hide file tree
Showing 2 changed files with 2,270 additions and 603 deletions.
Loading

0 comments on commit 7605c1e

Please sign in to comment.