Failed Runs Monitor

  • jannovotny/failed-runs-monitor
  • Modified
  • Users 14
  • Runs 128.6k
  • Created by Author's avatarJan Novotn媒

This actor will let you know about failed or time outed runs of your actors and tasks via Slack or email. It can also notice you about successful runs with empty dataset, check JSON schema of dataset items, or about runs that are running for too long.

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
API_TOKEN=<YOUR_API_TOKEN>

# Prepare Actor input
cat > input.json <<'EOF'
{
  "config": [
    {
      "actorId": "apify/web-scraper",
      "minDatasetItems": 0,
      "maxRunTimeSecs": 3600
    }
  ]
}
EOF

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