Build Phase 2 judge vertical slice
This commit is contained in:
12
apps/api/src/queue.ts
Normal file
12
apps/api/src/queue.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Queue } from "bullmq"
|
||||
|
||||
import { judgeQueueName, type JudgeJobData } from "./judge/job"
|
||||
import { createBlockingRedis } from "./redis"
|
||||
|
||||
export const judgeQueue = new Queue<JudgeJobData>(judgeQueueName, {
|
||||
connection: createBlockingRedis(),
|
||||
defaultJobOptions: {
|
||||
removeOnComplete: 100,
|
||||
removeOnFail: 500,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user