Skip to content

Commit

Permalink
rm schedule to close and start and more retries (#10114)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoriceau committed Feb 4, 2022
1 parent 983d6ae commit 2eb73c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ public int getDelayBetweenActivityAttempts() {

@Override
public int getActivityNumberOfAttempt() {
return Integer.parseInt(getEnvOrDefault(ACTIVITY_MAX_ATTEMPT, "3"));
return Integer.parseInt(getEnvOrDefault(ACTIVITY_MAX_ATTEMPT, "10"));
}

// Helpers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ public class ActivityConfiguration {
.build();

public static final ActivityOptions SHORT_ACTIVITY_OPTIONS = ActivityOptions.newBuilder()
.setScheduleToCloseTimeout(DB_INTERACTION_TIMEOUT)
.setStartToCloseTimeout(DB_INTERACTION_TIMEOUT)
.setScheduleToStartTimeout(DB_INTERACTION_TIMEOUT)
.setCancellationType(ActivityCancellationType.WAIT_CANCELLATION_COMPLETED)
.setRetryOptions(TemporalUtils.RETRY)
.setHeartbeatTimeout(TemporalUtils.HEARTBEAT_TIMEOUT)
Expand Down

0 comments on commit 2eb73c5

Please sign in to comment.