This commit is contained in:
Andras Bacsai 2022-08-25 11:54:23 +02:00
parent c99f74b351
commit 8e6423e873
2 changed files with 6 additions and 6 deletions

View File

@ -108,11 +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('test')) {
// scheduler.run('test');
// }
// }, 2000)
// setInterval(async () => {
// if (!scheduler.workers.has('deployApplication')) {
// scheduler.run('deployApplication');

View File

@ -18,7 +18,7 @@ const options: any = {
}
},
jobs: [
{ name: 'test' },
{ name: 'test',interval: '2s' },
{
name: 'deployApplication',
},