debug cpu usage

This commit is contained in:
Andras Bacsai 2022-08-25 10:17:07 +02:00
parent 01e71958b2
commit db16a357e8

View File

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