From 109c1f797af0349d856770ce5236deb1a284e177 Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:52:24 +0100 Subject: [PATCH] disable old token purging --- modules/network/mainnet.ts | 12 ++++++------ worker/job-handlers.ts | 15 ++++++++------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/modules/network/mainnet.ts b/modules/network/mainnet.ts index 0fa6025d..aa4b6b7d 100644 --- a/modules/network/mainnet.ts +++ b/modules/network/mainnet.ts @@ -494,11 +494,11 @@ export const mainnetNetworkConfig: NetworkConfig = { name: 'sync-global-coingecko-prices', interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(2, 'minutes'), }, - { - name: 'global-purge-old-tokenprices', - interval: every(1, 'days'), - alarmEvaluationPeriod: 1, - alarmDatapointsToAlarm: 1, - }, + // { + // name: 'global-purge-old-tokenprices', + // interval: every(1, 'days'), + // alarmEvaluationPeriod: 1, + // alarmDatapointsToAlarm: 1, + // }, ], }; diff --git a/worker/job-handlers.ts b/worker/job-handlers.ts index aa91a476..0e1e121e 100644 --- a/worker/job-handlers.ts +++ b/worker/job-handlers.ts @@ -252,13 +252,14 @@ export function configureWorkerRoutes(app: Express) { await runIfNotAlreadyRunning(job.name, chainId, () => userService.syncUserRelicSnapshots(), res, next); break; case 'global-purge-old-tokenprices': - await runIfNotAlreadyRunning( - job.name, - chainId, - () => tokenService.purgeOldTokenPricesForAllChains(), - res, - next, - ); + // await runIfNotAlreadyRunning( + // job.name, + // chainId, + // () => tokenService.purgeOldTokenPricesForAllChains(), + // res, + // next, + // ); + res.sendStatus(200); break; case 'sync-coingecko-coinids': await runIfNotAlreadyRunning(job.name, chainId, () => tokenService.syncCoingeckoIds(), res, next);