mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Set retry limit to 3 for ClickHouse Cloud (#675)
This commit is contained in:
parent
e7bbd01212
commit
cbaf4c40f3
1 changed files with 3 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ export function createWriter({
|
|||
await Promise.all([
|
||||
writeCsv(clickhouse, agents, sql, compressed, logger, 3),
|
||||
clickhouseMirror
|
||||
? writeCsv(clickhouseMirror, agents, sql, compressed, logger, 1).catch(error => {
|
||||
? writeCsv(clickhouseMirror, agents, sql, compressed, logger, 3).catch(error => {
|
||||
logger.error('Failed to write operations to ClickHouse Cloud %s', error);
|
||||
// Ignore errors from clickhouse cloud
|
||||
return Promise.resolve();
|
||||
|
|
@ -95,7 +95,7 @@ export function createWriter({
|
|||
await Promise.all([
|
||||
writeCsv(clickhouse, agents, sql, compressed, logger, 3),
|
||||
clickhouseMirror
|
||||
? writeCsv(clickhouseMirror, agents, sql, compressed, logger, 1).catch(error => {
|
||||
? writeCsv(clickhouseMirror, agents, sql, compressed, logger, 3).catch(error => {
|
||||
logger.error('Failed to write operation_collection to ClickHouse Cloud %s', error);
|
||||
// Ignore errors from clickhouse cloud
|
||||
return Promise.resolve();
|
||||
|
|
@ -185,7 +185,7 @@ async function writeCsv(
|
|||
|
||||
logger.debug('Retry %s/%s for %s', info.attemptCount, maxRetry, query);
|
||||
|
||||
return info.attemptCount * 250;
|
||||
return info.attemptCount * 500;
|
||||
},
|
||||
},
|
||||
timeout: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue