Skip to content

Commit

Permalink
Merge pull request #271 from data-integrations/recovery-timeout-impro…
Browse files Browse the repository at this point in the history
…vement

Fix: Increase timeout to improve pipeline recovery during runtime agent downtime
  • Loading branch information
anshumanks authored Dec 24, 2024
2 parents 92f7fcf + d47117c commit fd60275
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 fd60275

Please sign in to comment.