worker can concurrently process 10 jobs

This commit is contained in:
Hongbo Wu
2024-06-12 18:37:58 +08:00
parent a580fd7ebf
commit f29592d671

View File

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