mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
Ups concurrency (#104)
This commit is contained in:
parent
f1aeb0c7c8
commit
a273247809
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export default class RedisQueueProvider implements QueueProvider {
|
|||
start(): void {
|
||||
this.worker = new Worker('parcelvoy', async job => {
|
||||
await this.queue.dequeue(job.data)
|
||||
}, { connection: this.config })
|
||||
}, { connection: this.config, concurrency: 25 })
|
||||
this.worker.on('failed', (job, error) => {
|
||||
logger.error({ error }, 'sqs:error:processing')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue