Revert things

This commit is contained in:
Andras Bacsai
2022-08-25 12:25:46 +02:00
parent 7c8ffd510e
commit 0dc5212066
3 changed files with 8 additions and 33 deletions

View File

@@ -104,19 +104,14 @@ fastify.listen({ port, host }, async (err: any, address: any) => {
}
console.log(`Coolify's API is listening on ${host}:${port}`);
await initServer();
// await scheduler.start('cleanupPrismaEngines');
// await scheduler.start('checkProxies');
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');
// }
// }, 2000)
setInterval(async () => {
if (!scheduler.workers.has('deployApplication')) {
scheduler.run('deployApplication');
}
}, 2000)
// Check for update & if no build is running
setInterval(async () => {