From 083617039ca531fd295f246c7d051218663a568c Mon Sep 17 00:00:00 2001 From: ali Date: Wed, 22 Apr 2026 16:52:49 +0330 Subject: [PATCH] Disable the legacy giveconomy power sync cron. Default the impact-graph pull job to off so the old backend stops mirroring power changes once GIVeconomy becomes the source of truth. Made-with: Cursor --- src/services/cronJobs/syncGiveconomyPowerEvents.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/cronJobs/syncGiveconomyPowerEvents.ts b/src/services/cronJobs/syncGiveconomyPowerEvents.ts index f341789d4..42ad34a1a 100644 --- a/src/services/cronJobs/syncGiveconomyPowerEvents.ts +++ b/src/services/cronJobs/syncGiveconomyPowerEvents.ts @@ -7,6 +7,10 @@ let isGiveconomyPowerSyncRunning = false; export const runGiveconomyPowerSyncCronJob = () => { const cronExpression = process.env.GIVECONOMY_POWER_SYNC_CRON_EXPRESSION || '*/1 * * * *'; + if (process.env.DISABLE_GIVECONOMY_POWER_SYNC_JOB !== 'false') { + logger.info('GIVeconomy power sync cron job is disabled by configuration'); + return; + } if (!process.env.GIVECONOMY_POWER_SYNC_URL) { logger.info('GIVeconomy power sync cron job is disabled'); return;