mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Refactor retryCount initialization across multiple modules for consistency
This commit is contained in:
@@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: false,
|
||||
checkPostgresStatus: false,
|
||||
checkRedisStatus: false,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ export default class InfrastructureStatus {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static async checkStatusWithRetry(data: {
|
||||
retryCount: number;
|
||||
checkRedisStatus: boolean;
|
||||
|
||||
@@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: false,
|
||||
checkPostgresStatus: false,
|
||||
checkRedisStatus: false,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: true,
|
||||
checkPostgresStatus: true,
|
||||
checkRedisStatus: true,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: false,
|
||||
checkPostgresStatus: false,
|
||||
checkRedisStatus: false,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: true,
|
||||
checkPostgresStatus: true,
|
||||
checkRedisStatus: true,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: false,
|
||||
checkPostgresStatus: true,
|
||||
checkRedisStatus: false,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: true,
|
||||
checkPostgresStatus: true,
|
||||
checkRedisStatus: true,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: true,
|
||||
checkPostgresStatus: true,
|
||||
checkRedisStatus: true,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: true,
|
||||
checkPostgresStatus: true,
|
||||
checkRedisStatus: true,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
checkClickhouseStatus: true,
|
||||
checkPostgresStatus: true,
|
||||
checkRedisStatus: true,
|
||||
retryCount: 3
|
||||
retryCount: 3,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user