mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-25 21:13:01 +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>(
|
return this.pgBoss.work<T>(
|
||||||
`${queueName}.*`,
|
`${queueName}.*`,
|
||||||
{
|
options?.concurrency
|
||||||
teamConcurrency: options?.concurrency,
|
? {
|
||||||
},
|
teamConcurrency: options.concurrency,
|
||||||
|
}
|
||||||
|
: {},
|
||||||
async (job) => {
|
async (job) => {
|
||||||
await handler({ data: job.data, id: job.id, name: job.name });
|
await handler({ data: job.data, id: job.id, name: job.name });
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user