fix: high cpu usage

This commit is contained in:
Andras Bacsai
2022-08-25 10:28:32 +02:00
parent db16a357e8
commit c53f0dbb30
2 changed files with 27 additions and 9 deletions

View File

@@ -107,11 +107,11 @@ fastify.listen({ port, host }, async (err: any, address: any) => {
await scheduler.start('cleanupPrismaEngines');
await scheduler.start('checkProxies');
// setInterval(async () => {
// if (!scheduler.workers.has('deployApplication')) {
// scheduler.run('deployApplication');
// }
// }, 2000)
setInterval(async () => {
if (!scheduler.workers.has('deployApplication')) {
scheduler.run('deployApplication');
}
}, 2000)
// Check for update & if no build is running
setInterval(async () => {