Skip to content

Commit

Permalink
fix config db timeout param (#8988)
Browse files Browse the repository at this point in the history
  • Loading branch information
subodh1810 authored Dec 21, 2021
1 parent a6923b2 commit 6dce540
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public class EnvConfigs implements Configs {
private static final long DEFAULT_MINIMUM_WORKSPACE_RETENTION_DAYS = 1;
private static final long DEFAULT_MAXIMUM_WORKSPACE_RETENTION_DAYS = 60;
private static final long DEFAULT_MAXIMUM_WORKSPACE_SIZE_MB = 5000;
private static final int DEFAULT_DATABASE_INTILIZATION_TIMEOUT_MS = 60 * 1000;
private static final int DEFAULT_DATABASE_INITIALIZATION_TIMEOUT_MS = 60 * 1000;

public static final long DEFAULT_MAX_SPEC_WORKERS = 5;
public static final long DEFAULT_MAX_CHECK_WORKERS = 5;
Expand Down Expand Up @@ -289,7 +289,7 @@ public String getJobsDatabaseMinimumFlywayMigrationVersion() {

@Override
public long getJobsDatabaseInitializationTimeoutMs() {
return getEnvOrDefault(JOBS_DATABASE_INITIALIZATION_TIMEOUT_MS, DEFAULT_DATABASE_INTILIZATION_TIMEOUT_MS);
return getEnvOrDefault(JOBS_DATABASE_INITIALIZATION_TIMEOUT_MS, DEFAULT_DATABASE_INITIALIZATION_TIMEOUT_MS);
}

@Override
Expand Down Expand Up @@ -317,7 +317,7 @@ public String getConfigsDatabaseMinimumFlywayMigrationVersion() {

@Override
public long getConfigsDatabaseInitializationTimeoutMs() {
return getEnvOrDefault(JOBS_DATABASE_INITIALIZATION_TIMEOUT_MS, DEFAULT_DATABASE_INTILIZATION_TIMEOUT_MS);
return getEnvOrDefault(CONFIGS_DATABASE_INITIALIZATION_TIMEOUT_MS, DEFAULT_DATABASE_INITIALIZATION_TIMEOUT_MS);
}

@Override
Expand Down

0 comments on commit 6dce540

Please sign in to comment.