mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-25 13:02:15 +03:00
Handle no concurrency option (#5952)
Fix error in local `teamConcurrency must be an integer between 1 and 1000`
This commit is contained in:
parent
d045bcbb94
commit
96da777107
@ -41,9 +41,11 @@ export class PgBossDriver
|
||||
) {
|
||||
return this.pgBoss.work<T>(
|
||||
`${queueName}.*`,
|
||||
{
|
||||
teamConcurrency: options?.concurrency,
|
||||
},
|
||||
options?.concurrency
|
||||
? {
|
||||
teamConcurrency: options.concurrency,
|
||||
}
|
||||
: {},
|
||||
async (job) => {
|
||||
await handler({ data: job.data, id: job.id, name: job.name });
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user