From 65ae5cf123067cf0eea13fb2686436cd00b93038 Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Tue, 20 Jan 2026 09:19:10 +0530 Subject: [PATCH] gmail and calendar sync every 5 mins --- apps/x/packages/core/src/knowledge/sync_calendar.ts | 2 +- apps/x/packages/core/src/knowledge/sync_gmail.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/x/packages/core/src/knowledge/sync_calendar.ts b/apps/x/packages/core/src/knowledge/sync_calendar.ts index ae1241ac..0499b8e7 100644 --- a/apps/x/packages/core/src/knowledge/sync_calendar.ts +++ b/apps/x/packages/core/src/knowledge/sync_calendar.ts @@ -8,7 +8,7 @@ import { GoogleClientFactory } from './google-client-factory.js'; // Configuration const SYNC_DIR = path.join(WorkDir, 'calendar_sync'); -const SYNC_INTERVAL_MS = 60 * 1000; // Check every minute +const SYNC_INTERVAL_MS = 5 * 60 * 1000; // Check every 5 minutes const LOOKBACK_DAYS = 14; const REQUIRED_SCOPES = [ 'https://www.googleapis.com/auth/calendar.readonly', diff --git a/apps/x/packages/core/src/knowledge/sync_gmail.ts b/apps/x/packages/core/src/knowledge/sync_gmail.ts index dea534e7..ecf8a4e8 100644 --- a/apps/x/packages/core/src/knowledge/sync_gmail.ts +++ b/apps/x/packages/core/src/knowledge/sync_gmail.ts @@ -8,7 +8,7 @@ import { GoogleClientFactory } from './google-client-factory.js'; // Configuration const SYNC_DIR = path.join(WorkDir, 'gmail_sync'); -const SYNC_INTERVAL_MS = 60 * 1000; // Check every minute +const SYNC_INTERVAL_MS = 5 * 60 * 1000; // Check every 5 minutes const REQUIRED_SCOPE = 'https://www.googleapis.com/auth/gmail.readonly'; const nhm = new NodeHtmlMarkdown();