fix clickhouse startup resilience across services

This commit is contained in:
Kellan Drucquer 2026-04-04 08:24:14 -04:00
parent 4579778a13
commit 522265686e
6 changed files with 9 additions and 9 deletions

View file

@ -1138,7 +1138,7 @@ const run = async () => {
logger.warn("redis client error", { error: error instanceof Error ? error.message : String(error) });
});
await retry("redis connect", 20, 500, async () => {
await retry("redis connect", 120, 500, async () => {
await redis.connect();
});
@ -1147,7 +1147,7 @@ const run = async () => {
ttlSeconds: env.ROLLING_TTL_SEC
};
await retry("clickhouse table init", 20, 500, async () => {
await retry("clickhouse table init", 120, 500, async () => {
await ensureFlowPacketsTable(clickhouse);
await ensureEquityPrintJoinsTable(clickhouse);
await ensureInferredDarkTable(clickhouse);