Skip to content

Commit

Permalink
Increate failure delay to 2 minutes (heartbeat is likely to fail)) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoriceau committed Feb 4, 2022
1 parent c1ae307 commit 82ba043
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public interface Configs {
/**
* Get the duration in second between 2 activity attempts
*/
int getDelayBetweenActivityAttemps();
int getDelayBetweenActivityAttempts();

/**
* Get number of attempts of the non long running activities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@ public boolean getContainerOrchestratorEnabled() {

@Override
public int getMaxActivityTimeoutSecond() {
return Integer.parseInt(getEnvOrDefault(ACTIVITY_MAX_TIMEOUT_SECOND, "30"));
return Integer.parseInt(getEnvOrDefault(ACTIVITY_MAX_TIMEOUT_SECOND, "120"));
}

@Override
public int getDelayBetweenActivityAttemps() {
public int getDelayBetweenActivityAttempts() {
return Integer.parseInt(getEnvOrDefault(ACTIVITY_MAX_TIMEOUT_SECOND, "30"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static WorkflowServiceStubs createTemporalService(final String temporalHo
private static final Configs configs = new EnvConfigs();
public static final RetryOptions RETRY = RetryOptions.newBuilder()
.setMaximumAttempts(configs.getActivityNumberOfAttempt())
.setInitialInterval(Duration.ofSeconds(configs.getDelayBetweenActivityAttemps()))
.setInitialInterval(Duration.ofSeconds(configs.getDelayBetweenActivityAttempts()))
.build();

public static final String DEFAULT_NAMESPACE = "default";
Expand Down

0 comments on commit 82ba043

Please sign in to comment.