Skip to content
Discussion options

You must be logged in to vote

Hey @roanschuurman, hope you're doing well! Good question, and you're right that it's spread across a few pages, so it's easy to miss.

To stop a run from code, use getRun(runId).cancel() from workflow/api, or workflow cancel <runId> from the CLI (it can also bulk cancel by status or workflow name). For clearing data, there's no "delete this run" call today; the closest thing is starting a run with experimental_retention: 0, which wipes its payloads as soon as it finishes, and on the Local World you can just delete the .workflow-data folder.

Here's where that comes from on main:

  1. Cancel from code. getRun is exported from workflow/api (api.ts#L30-L36), and Run.cancel() takes an optional can…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VaguelySerious
Comment options

Answer selected by VaguelySerious
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants