From c99f74b351eeba1670ddf8dc4a995d5216fb2703 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 25 Aug 2022 11:49:19 +0200 Subject: [PATCH] debug --- apps/api/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) 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');