Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

hmm

Andras Bacsai8e6423e873eb
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index 14833c8265..fb825d42dc 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -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');
diff --git a/apps/api/src/lib/scheduler.ts b/apps/api/src/lib/scheduler.ts
index efe12d5c02..2460b83d8c 100644
--- a/apps/api/src/lib/scheduler.ts
+++ b/apps/api/src/lib/scheduler.ts
@@ -18,7 +18,7 @@ const options: any = {
}
},
jobs: [
- { name: 'test' },
+ { name: 'test',interval: '2s' },
{
name: 'deployApplication',
},