diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index 52b4bfd50..14833c826 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -108,6 +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('deployApplication')) { // scheduler.run('deployApplication');