fix clickhouse startup resilience across services
This commit is contained in:
parent
4579778a13
commit
522265686e
6 changed files with 9 additions and 9 deletions
|
|
@ -271,7 +271,7 @@ const run = async () => {
|
|||
database: env.CLICKHOUSE_DATABASE
|
||||
});
|
||||
|
||||
await retry("clickhouse table init", 20, 500, async () => {
|
||||
await retry("clickhouse table init", 120, 500, async () => {
|
||||
await ensureEquityCandlesTable(clickhouse);
|
||||
});
|
||||
|
||||
|
|
@ -287,7 +287,7 @@ const run = async () => {
|
|||
error: getErrorMessage(error)
|
||||
});
|
||||
});
|
||||
await retry("redis connect", 20, 500, async () => {
|
||||
await retry("redis connect", 120, 500, async () => {
|
||||
if (!redis) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue