Skip to content

Commit

Permalink
disable old token purging (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco authored Jan 15, 2024
1 parent 1f0ae92 commit a6418e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions modules/network/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
// },
],
};
15 changes: 8 additions & 7 deletions worker/job-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a6418e6

Please sign in to comment.