Skip to content

Commit 2829995

Browse files
committed
restore job queue
1 parent b33fcf9 commit 2829995

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/api/health.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// There is no way to get Next.js to run something at server startup (without using a custom server), so instead we call
2-
// /api/health on server start (see server.js). It a) does the actual healthcheck and b) makes sure to init the things
3-
// we want to init.
1+
// 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).
2+
//
3+
// It a) does the actual healthcheck, and b) makes sure to init the things we want to init.
44

55
import { NextApiResponse } from 'next'
66
import { startJobQueueProcessing } from '@lib/job-queue'
@@ -10,7 +10,7 @@ let initCalled = false
1010
export default async function handler(req, res: NextApiResponse) {
1111
if (!initCalled) {
1212
initCalled = true
13-
// await startJobQueueProcessing()
13+
await startJobQueueProcessing()
1414
}
1515
res.send('OK')
1616
}

0 commit comments

Comments
 (0)