Skip to content

Commit

Permalink
Merge branch 'main' into v3/worker-attempt-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktrn committed May 8, 2024
2 parents c6b1a29 + 8d34c63 commit 55cd522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -173,7 +173,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 55cd522

Please sign in to comment.