Skip to content

Commit

Permalink
restore job queue
Browse files Browse the repository at this point in the history
  • Loading branch information
neongreen committed Sep 1, 2024
1 parent b33fcf9 commit 2829995
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/api/health.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// There is no way to get Next.js to run something at server startup (without using a custom server), so instead we call
// /api/health on server start (see server.js). It a) does the actual healthcheck and b) makes sure to init the things
// we want to init.
// There is no way to get Next.js to run something at server startup (without using a custom server), so instead we call /api/health on server start (see server.js).
//
// It a) does the actual healthcheck, and b) makes sure to init the things we want to init.

import { NextApiResponse } from 'next'
import { startJobQueueProcessing } from '@lib/job-queue'
Expand All @@ -10,7 +10,7 @@ let initCalled = false
export default async function handler(req, res: NextApiResponse) {
if (!initCalled) {
initCalled = true
// await startJobQueueProcessing()
await startJobQueueProcessing()
}
res.send('OK')
}

0 comments on commit 2829995

Please sign in to comment.