From b3342443e11fa3f3f47d9ed911ca0999c6f09fb9 Mon Sep 17 00:00:00 2001 From: Ian Sanders Date: Wed, 10 Jan 2024 22:02:42 +0000 Subject: [PATCH] Shorten triggers timeout --- src/jobs/updateSyncTriggers.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jobs/updateSyncTriggers.ts b/src/jobs/updateSyncTriggers.ts index 46a5d28..139dcb6 100644 --- a/src/jobs/updateSyncTriggers.ts +++ b/src/jobs/updateSyncTriggers.ts @@ -3,9 +3,10 @@ import { TeamCalendarController } from "../controllers/TeamCalendarController"; /** Update all sync triggers for all calendars. */ export function updateSyncTriggers() { - // This can take a while, so let's avoid concurrent runs to be safe + // This can take a while, so let's avoid concurrent runs to be safe. But, this task runs synchronously in the UI so + // we really don't want to hit the 30s timeout here. const lock = LockService.getUserLock(); - lock.waitLock(15_000); + lock.waitLock(10_000); Logger.log("Updating all sync triggers");