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.