Skip to main content
apify.abortRun stops a running Apify Actor run immediately or gracefully.

Example

automations/apify-abort-run.automation.ts

Inputs

runId identifies the run. Set gracefully to true to let the Actor handle its abort signal before Apify stops it; the provider default is an immediate abort.

Output

Returns the updated Actor run. Aborting changes provider state and may be unsafe to repeat after an uncertain response.