Skip to content

Commit

Permalink
Make BAD_REQUEST non-retryable for Nexus operations
Browse files Browse the repository at this point in the history
  • Loading branch information
pdoerner committed Oct 1, 2024
1 parent 156f4f1 commit 0ef22a8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,8 @@ static RetryPolicy ensureDefaultFieldsForActivityRetryPolicy(RetryPolicy origina
static RetryPolicy defaultNexusRetryPolicy() {
return RetryPolicy.newBuilder()
.addAllNonRetryableErrorTypes(
Arrays.asList("INVALID_ARGUMENT", "NOT_FOUND", "DEADLINE_EXCEEDED", "CANCELLED"))
Arrays.asList(
"BAD_REQUEST", "INVALID_ARGUMENT", "NOT_FOUND", "DEADLINE_EXCEEDED", "CANCELLED"))
.setInitialInterval(Durations.fromSeconds(1))
.setMaximumInterval(Durations.fromHours(1))
.setBackoffCoefficient(2.0)
Expand Down

0 comments on commit 0ef22a8

Please sign in to comment.