Skip to content

Commit

Permalink
Shorten triggers timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 authored Jan 10, 2024
1 parent 4f6e4a5 commit b334244
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jobs/updateSyncTriggers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit b334244

Please sign in to comment.