reduce bullmq worker concurrency to 2

This commit is contained in:
Hongbo Wu
2024-06-18 17:28:19 +08:00
parent 163df00c66
commit 6df8c71035

View File

@ -236,7 +236,7 @@ export const createWorker = (connection: ConnectionOptions) =>
connection,
autorun: true, // start processing jobs immediately
lockDuration: 60_000, // 1 minute
concurrency: 10,
concurrency: 2,
}
)