Refactor retryCount initialization across multiple modules for consistency

This commit is contained in:
Simon Larsen
2024-11-25 13:53:43 +00:00
parent 6b470e671f
commit 2ff9b47f1c
13 changed files with 15 additions and 16 deletions

View File

@@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -38,7 +38,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};
@@ -49,7 +49,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: false,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};
@@ -59,7 +59,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: true,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -42,7 +42,6 @@ export default class InfrastructureStatus {
}
}
public static async checkStatusWithRetry(data: {
retryCount: number;
checkRedisStatus: boolean;

View File

@@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -23,7 +23,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -394,11 +394,11 @@ startupProbe: # Startup probe configuration
livenessProbe: # Liveness probe configuration
enabled: true
periodSeconds: 10
timeoutSeconds: 30
timeoutSeconds: 120
initialDelaySeconds: 10
readinessProbe: # Readiness probe configuration
enabled: true
periodSeconds: 10
initialDelaySeconds: 10
timeoutSeconds: 30
timeoutSeconds: 120

View File

@@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -24,7 +24,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -17,7 +17,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: true,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -24,7 +24,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -31,7 +31,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -29,7 +29,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

View File

@@ -27,7 +27,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};