docs/bulk-actions.mdx
Bulk actions let you replay or cancel multiple runs asynchronously from the dashboard.
Use bulk actions when you need to retry failed runs after deploying a fix, or stop a group of queued or executing runs.
<Note> For backend code, see [Bulk actions with the SDK](/runs/bulk-actions). </Note><video src="https://content.trigger.dev/bulk-actions.mp4" preload="auto" controls={true} loop muted autoPlay={true} width="100%" height="100%" />



Use runs.bulk.replay() or runs.bulk.cancel() when you want to create a bulk action from your backend code.
import { runs } from "@trigger.dev/sdk";
const action = await runs.bulk.replay({
filter: {
status: "FAILED",
taskIdentifier: "sync-customer",
period: "24h",
},
name: "Replay failed customer syncs",
});
const completed = await runs.bulk.poll(action.id);
console.log(completed.status, completed.counts);
See Bulk actions with the SDK for canceling, listing, polling, and aborting bulk actions from your backend code.