Skip to content

Commit

Permalink
fix(irs-api):[#538] switch to dedicated retry exceptions instead of i…
Browse files Browse the repository at this point in the history
…gnoring certain ones
  • Loading branch information
ds-jhartmann committed Jul 10, 2024
1 parent f86a5e9 commit 51ca1f8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions irs-api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,13 @@ resilience4j:
waitDuration: 10s # How long to wait between each retry
enableExponentialBackoff: true # Whether subsequent retries will delay exponentially or not
exponentialBackoffMultiplier: 2 # Multiplier for the exponential delay
ignore-exceptions: # Do not retry on the listed exceptions
- org.springframework.web.client.HttpClientErrorException.NotFound
- org.eclipse.tractusx.irs.edc.client.ItemNotFoundInCatalogException
retry-exceptions:
- org.springframework.web.client.HttpServerErrorException.GatewayTimeout
- org.springframework.web.client.HttpServerErrorException.InternalServerError
- org.springframework.web.client.HttpServerErrorException.ServiceUnavailable
- org.springframework.web.client.HttpServerErrorException.BadGateway
- org.springframework.web.client.HttpClientErrorException.TooManyRequests
- org.springframework.web.client.ResourceAccessException
instances:
registry:
baseConfig: default
Expand Down

0 comments on commit 51ca1f8

Please sign in to comment.