Skip to content

Commit

Permalink
Handle no concurrency option (#5952)
Browse files Browse the repository at this point in the history
Fix error in local `teamConcurrency must be an integer between 1 and
1000`
  • Loading branch information
thomtrp authored Jun 19, 2024
1 parent d045bcb commit 96da777
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
},
Expand Down

0 comments on commit 96da777

Please sign in to comment.