Skip to content

Commit

Permalink
Fix issue when concurrency limit is set to 0 on a queue
Browse files Browse the repository at this point in the history
  • Loading branch information
ericallam committed May 8, 2024
1 parent ff04c98 commit 8d34c63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -172,7 +172,7 @@ export async function createBackgroundTasks(
},
});

if (taskQueue.concurrencyLimit) {
if (typeof taskQueue.concurrencyLimit === "number") {
await marqs?.updateQueueConcurrencyLimits(
environment,
taskQueue.name,
Expand Down
2 changes: 1 addition & 1 deletion references/v3-catalog/src/trigger/concurrency.ts
Expand Up @@ -3,7 +3,7 @@ import { logger, task, wait } from "@trigger.dev/sdk/v3";
export const oneAtATime = task({
id: "on-at-a-time",
queue: {
concurrencyLimit: 2,
concurrencyLimit: 1,
},
run: async (payload: { message: string }) => {
logger.info("One at a time task payload", { payload });
Expand Down

0 comments on commit 8d34c63

Please sign in to comment.