Revert things
This commit is contained in:
parent
7c8ffd510e
commit
0dc5212066
@ -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 () => {
|
||||
|
@ -347,14 +347,9 @@ import * as buildpacks from '../lib/buildPacks';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
await pAll.default(actions, { concurrency })
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
process.exit(0);
|
||||
|
||||
} finally {
|
||||
} catch (error) { } finally {
|
||||
await prisma.$disconnect();
|
||||
process.exit(0);
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
import { parentPort } from 'node:worker_threads';;
|
||||
|
||||
(async () => {
|
||||
if (parentPort) {
|
||||
parentPort.on('message', async (message) => {
|
||||
if (message === 'error') throw new Error('oops');
|
||||
if (message === 'cancel') {
|
||||
parentPort.postMessage('cancelled');
|
||||
process.exit(0);
|
||||
}
|
||||
});
|
||||
console.log('test job started');
|
||||
process.exit(0)
|
||||
} else process.exit(0);
|
||||
})();
|
Loading…
x
Reference in New Issue
Block a user