Skip to content

Commit ce604f0

Browse files
Documentation edits made through Mintlify web editor
1 parent 9fd175e commit ce604f0

File tree

2 files changed

+472
-0
lines changed

2 files changed

+472
-0
lines changed

bulk-actions.mdx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "Bulk actions"
3+
description: "Perform actions like replay and cancel on multiple runs at once."
4+
---
5+
6+
Bulk actions allow you to perform operations like replaying or canceling on multiple runs at once. This is especially useful when you need to retry a batch of failed runs with a new version of your code, or when you need to cancel multiple in-progress runs.
7+
8+
## Bulk replaying
9+
10+
You can replay multiple runs at once by selecting them from the table on the Runs page using the checkbox on the left hand side of the row. Then click the "Replay runs" button from the bulk action bar that appears at the bottom of the screen.
11+
12+
This is especially useful if you have lots of failed runs and want to run them all again. To do this, first filter the runs by the status you want, then select all the runs you want to replay and click the "Replay runs" button from the bulk action bar at the bottom of the page.
13+
14+
<video
15+
src="https://content.trigger.dev/bulk-replaying-runs.mp4"
16+
preload="auto"
17+
controls={true}
18+
loop
19+
muted
20+
autoPlay={true}
21+
width="100%"
22+
height="100%"
23+
/>
24+
25+
## Bulk canceling
26+
27+
Similar to replaying multiple runs, you can cancel multiple runs at once. This is particularly useful when you have a batch of runs that you want to stop, perhaps because they were triggered with incorrect parameters or are no longer needed.
28+
29+
To cancel multiple runs:
30+
31+
1. Filter the runs table to show the runs you want to cancel (e.g., all runs with status "QUEUED" or "EXECUTING")
32+
2. Use the checkboxes on the left side of the runs table to select the runs you want to cancel
33+
3. Click the "Cancel runs" button in the bulk action bar that appears at the bottom of the screen
34+
35+
After confirming, all selected runs that can be canceled (those in appropriate states like QUEUED or EXECUTING) will be canceled. The status of these runs will change to "CANCELED" and they will not be resumed.
36+
37+
<Note>
38+
You can only cancel runs that are in states that allow cancellation (like QUEUED or EXECUTING).
39+
Runs that are already completed, failed, or in other final states cannot be canceled.
40+
</Note>

0 commit comments

Comments
 (0)