Skip to content

Commit

Permalink
Fix: Increase timeout to improve pipeline recovery during runtime age…
Browse files Browse the repository at this point in the history
…nt downtime
  • Loading branch information
anshumanks committed Dec 24, 2024
1 parent 92f7fcf commit d47117c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ public class BigQueryEventConsumer implements EventConsumer {
this.schemaMappingCache = new SchemaMappingCache();
this.commitRetryPolicy = new RetryPolicy<>()
.withMaxAttempts(Integer.MAX_VALUE)
.withMaxDuration(Duration.of(5, ChronoUnit.MINUTES))
.withBackoff(1, 60, ChronoUnit.SECONDS)
.withMaxDuration(Duration.of(45, ChronoUnit.MINUTES))
.withBackoff(1, 180, ChronoUnit.SECONDS)
.onFailedAttempt(failureContext -> {
// log on the first failure and then every fifth failed attempt
if (failureContext.getAttemptCount() == 1 || failureContext.getAttemptCount() % 5 == 0) {
Expand Down

0 comments on commit d47117c

Please sign in to comment.