mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
process up to 10 jobs concurrently
This commit is contained in:
parent
0fbc6d0a87
commit
72d89308c5
1 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,10 @@ export const createWorker = (
|
|||
{
|
||||
connection: redisDataSource.queueRedisClient,
|
||||
autorun: true, // start processing jobs immediately
|
||||
limiter: {
|
||||
max: 10, // process up to 10 jobs concurrently
|
||||
duration: 1000, // 1 second
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue