diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index 14833c826..fb825d42d 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -108,11 +108,11 @@ fastify.listen({ port, host }, async (err: any, address: any) => { // await scheduler.start('cleanupPrismaEngines'); // await scheduler.start('checkProxies'); - setInterval(async () => { - if (!scheduler.workers.has('test')) { - scheduler.run('test'); - } - }, 2000) + // setInterval(async () => { + // if (!scheduler.workers.has('test')) { + // scheduler.run('test'); + // } + // }, 2000) // setInterval(async () => { // if (!scheduler.workers.has('deployApplication')) { // scheduler.run('deployApplication'); diff --git a/apps/api/src/lib/scheduler.ts b/apps/api/src/lib/scheduler.ts index efe12d5c0..2460b83d8 100644 --- a/apps/api/src/lib/scheduler.ts +++ b/apps/api/src/lib/scheduler.ts @@ -18,7 +18,7 @@ const options: any = { } }, jobs: [ - { name: 'test' }, + { name: 'test',interval: '2s' }, { name: 'deployApplication', },