From ba203f1ecd5cf340c192731e65bcd45d277a9991 Mon Sep 17 00:00:00 2001 From: franz Date: Fri, 1 Dec 2023 16:20:23 +0100 Subject: [PATCH] remove switch --- worker/job-handlers.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/worker/job-handlers.ts b/worker/job-handlers.ts index 9a0f61675..802364dae 100644 --- a/worker/job-handlers.ts +++ b/worker/job-handlers.ts @@ -65,12 +65,6 @@ export function configureWorkerRoutes(app: Express) { app.post('/', async (req, res, next) => { const job = req.body as { name: string; chain: string; run?: boolean }; - // Worker only works when enabled - if (process.env.JOBS_ENABLED !== 'true') { - res.sendStatus(200); - return; - } - console.log(`Current jobqueue length: ${runningJobs.size}`); const chainId = job.chain; initRequestScopedContext();