Abort Actor Runs

  • mnmkng/abort-actor-runs
  • Modified
  • Users 16
  • Runs 820
  • Created by Author's avatarOndra Urban

This actor enables the aborting of all user's running actors with a single click or by a single API call. Scans all actors of the user, aborts all RUNNING and READY actors. It is set to minimize compute unit usage at the expense of speed. Scans the user's actors sequentially to prevent API abuse.

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

# Set API token

# Prepare Actor input
cat > input.json <<'EOF'

# Run the Actor
curl "https://api.apify.com/v2/acts/mnmkng~abort-actor-runs/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'