Merge branch 'main' into v3/worker-attempt-creation
This commit is contained in:
@@ -173,7 +173,7 @@ export async function createBackgroundTasks(
|
||||
},
|
||||
});
|
||||
|
||||
if (taskQueue.concurrencyLimit) {
|
||||
if (typeof taskQueue.concurrencyLimit === "number") {
|
||||
await marqs?.updateQueueConcurrencyLimits(
|
||||
environment,
|
||||
taskQueue.name,
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user