Skip to content

[TRI-5835] Add the concurrencyKey to the run ctx #2250

Description

@matt-aitken

You can trigger a run with a concurrencyKey to create a copy of a queue at runtime. It would be useful if this value would come through to the actual task when it executes (via the ctx).

await myTask.trigger(payload, {
  concurrencyKey: "user-123",
  queue: "user-queue"
});
export const myTask = task({
  id: "my-task",
  run: async (payload, { ctx }) => {
    // We should add ctx.concurrencyKey
    // "user-123"
    ctx.concurrencyKey
  }
});

TRI-5835

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions