From 414592008ec22ae06b5d58a3dd34ff33c246eeb1 Mon Sep 17 00:00:00 2001 From: Philippe Rolet Date: Sat, 9 Mar 2024 11:44:24 +0100 Subject: [PATCH] [Connectors] Hotfix: increase incrementalSync start-to-close (#4231) See https://github.com/dust-tt/tasks/issues/518 --- .../src/connectors/google_drive/temporal/workflows.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/connectors/src/connectors/google_drive/temporal/workflows.ts b/connectors/src/connectors/google_drive/temporal/workflows.ts index cfe5fa6210d8..1148ef71e8a1 100644 --- a/connectors/src/connectors/google_drive/temporal/workflows.ts +++ b/connectors/src/connectors/google_drive/temporal/workflows.ts @@ -22,12 +22,16 @@ const { renewWebhooks, populateSyncTokens, garbageCollectorFinished, - incrementalSync, markFolderAsVisited, } = proxyActivities({ startToCloseTimeout: "20 minutes", }); +// Hotfix: increase timeout on incrementalSync to avoid restarting ongoing activities +const { incrementalSync } = proxyActivities({ + startToCloseTimeout: "60 minutes", +}); + // Temporarily increase timeout on syncFiles until table upsertion is moved to the upsert queue. const { syncFiles } = proxyActivities({ startToCloseTimeout: "30 minutes",