Skip to content

Commit 04050df

Browse files
bayulaksana479andrewklau
authored andcommitted
fix(backend): disable receipts related backend jobs
1 parent c0ecd95 commit 04050df

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

apps/backend/src/cron.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ const options = {
55
noOverlap: true,
66
};
77

8+
// TODO: reenable jobs after receipts are in sync
89
export const scheduleJobs = () => {
910
try {
1011
// Stats
1112
cron.schedule('*/15 * * * * *', './jobs/stats.js', options); // 15s
12-
cron.schedule('0 1 0 * * *', './jobs/dailyStats.js', options); // every day at 00:01
13+
// cron.schedule('0 1 0 * * *', './jobs/dailyStats.js', options); // every day at 00:01
1314

1415
// Token jobs
1516
cron.schedule('*/15 * * * * *', './jobs/tokenSupply.js', options); // 15s
@@ -18,10 +19,10 @@ export const scheduleJobs = () => {
1819
cron.schedule('0 0 0 * * *', './jobs/tokenMetaReset.js', options); // 1d
1920

2021
// Validator jobs
21-
cron.schedule('0 * * * * *', './jobs/nodes.js', options); // 1m
22-
cron.schedule('0 */15 * * * *', './jobs/pools.js', options); // 15m
23-
cron.schedule('0 0 * * * *', './jobs/protocol.js', options); // 1h
24-
cron.schedule('0 0 0 * * *', './jobs/genesis.js', options); // 1d
22+
// cron.schedule('0 * * * * *', './jobs/nodes.js', options); // 1m
23+
// cron.schedule('0 */15 * * * *', './jobs/pools.js', options); // 15m
24+
// cron.schedule('0 0 * * * *', './jobs/protocol.js', options); // 1h
25+
// cron.schedule('0 0 0 * * *', './jobs/genesis.js', options); // 1d
2526

2627
// View refresher jobs
2728
cron.schedule('0 */15 * * * *', './jobs/refreshTokenList.js', options); // 15m

apps/backend/src/services/stats/stats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import config from '#config';
77
import cg from '#libs/cg';
88
import { dbBase } from '#libs/knex';
99
import { fetchValidators } from '#libs/near';
10-
import { Raw } from '#types/types.js';
10+
import { Raw } from '#types/types';
1111

1212
export const syncStats = async () => {
1313
const block = await blockData();

0 commit comments

Comments
 (0)