Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
530e1a3d5d
commit
195069450f
480 files changed
+15507
-24650
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { Queue } from "bullmq"
|
||||
import { Queue } from 'bullmq'
|
||||
|
||||
import { judgeQueueName, type JudgeJobData } from "./judge/job"
|
||||
import { flowchartQueueName, type FlowchartJobData } from "./flowchart/job"
|
||||
import { createBlockingRedis } from "./redis"
|
||||
import { judgeQueueName, type JudgeJobData } from './judge/job'
|
||||
import { flowchartQueueName, type FlowchartJobData } from './flowchart/job'
|
||||
import { createBlockingRedis } from './redis'
|
||||
|
||||
export const judgeQueue = new Queue<JudgeJobData>(judgeQueueName, {
|
||||
connection: createBlockingRedis(),
|
||||
@@ -16,7 +16,7 @@ export const flowchartQueue = new Queue<FlowchartJobData>(flowchartQueueName, {
|
||||
connection: createBlockingRedis(),
|
||||
defaultJobOptions: {
|
||||
attempts: 3,
|
||||
backoff: { type: "exponential", delay: 2_000 },
|
||||
backoff: { type: 'exponential', delay: 2_000 },
|
||||
removeOnComplete: 100,
|
||||
removeOnFail: 500,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user