-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow retries for some exceptions, before failure, ignore others allt…
…ogether
- Loading branch information
1 parent
3c7f6ef
commit 88c80f4
Showing
6 changed files
with
123 additions
and
39 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
16 changes: 16 additions & 0 deletions
16
...tlin/no/nav/pensjon/opptjening/omsorgsopptjening/start/innlesning/config/BackoffConfig.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.config | ||
|
||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.context.annotation.Profile | ||
import org.springframework.util.backoff.BackOff | ||
import org.springframework.util.backoff.FixedBackOff | ||
|
||
@Configuration | ||
@Profile("dev-gcp", "prod-gcp") | ||
class BackoffConfig { | ||
@Bean | ||
fun backoff(): BackOff { | ||
return FixedBackOff(3000, 3) | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...tlin/no/nav/pensjon/opptjening/omsorgsopptjening/start/innlesning/config/BackoffConfig.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.config | ||
|
||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.util.backoff.BackOff | ||
import org.springframework.util.backoff.FixedBackOff | ||
|
||
@Configuration | ||
class BackoffConfig { | ||
@Bean | ||
fun backoff(): BackOff { | ||
return FixedBackOff(1000, 2) | ||
} | ||
} |