Skip to content

Commit

Permalink
Refactor retryCount initialization across multiple modules for consis…
Browse files Browse the repository at this point in the history
…tency
  • Loading branch information
simlarsen committed Nov 25, 2024
1 parent 6b470e6 commit 2ff9b47
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion APIReference/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

Expand Down
6 changes: 3 additions & 3 deletions App/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

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

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

Expand Down
1 change: 0 additions & 1 deletion Common/Server/Infrastructure/Status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default class InfrastructureStatus {
}
}


public static async checkStatusWithRetry(data: {
retryCount: number;
checkRedisStatus: boolean;
Expand Down
2 changes: 1 addition & 1 deletion Docs/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

Expand Down
2 changes: 1 addition & 1 deletion FluentIngest/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

Expand Down
4 changes: 2 additions & 2 deletions HelmChart/Public/oneuptime/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Home/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: false,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

Expand Down
2 changes: 1 addition & 1 deletion IncomingRequestIngest/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

Expand Down
2 changes: 1 addition & 1 deletion Nginx/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: false,
checkPostgresStatus: true,
checkRedisStatus: false,
retryCount: 3
retryCount: 3,
});
};

Expand Down
2 changes: 1 addition & 1 deletion OpenTelemetryIngest/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

Expand Down
2 changes: 1 addition & 1 deletion ProbeIngest/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

Expand Down
2 changes: 1 addition & 1 deletion Worker/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

Expand Down
2 changes: 1 addition & 1 deletion Workflow/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const init: PromiseVoidFunction = async (): Promise<void> => {
checkClickhouseStatus: true,
checkPostgresStatus: true,
checkRedisStatus: true,
retryCount: 3
retryCount: 3,
});
};

Expand Down

0 comments on commit 2ff9b47

Please sign in to comment.