Skip to content

Commit

Permalink
remove switch
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Dec 1, 2023
1 parent ace6b65 commit ba203f1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions worker/job-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ba203f1

Please sign in to comment.