CLI commands for cancel/replaying

Including the ability to do bulk cancel and replaying.

In the dashboard we allow bulk cancel/replay and in the SDK you can also do this. It would be useful to have CLI commands for this.

For example, being able to cancel all runs for a specific task. The equivalent of this:

import { runs } from "@trigger.dev/sdk/v3";

for await (const run of runs.list({ taskIdentifier: "your-task-id", status: ["QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN"] })) {
  await runs.cancel(run.id);
}

Upvoters
Status

In Review

Board

πŸ’‘ Feature Request

Date

Over 1 year ago

Author

mattaitken

Subscribe to post

Get notified by email when there are changes.