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 that you can find under Settings > Integrations. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

List of most relevant API endpoints

See API reference for full details.

Run Actor synchronously and get dataset items

Runs this Actor and waits for it to finish. The POST payload including its Content-Type header is passed as INPUT to the Actor (usually application/json). The HTTP response contains the Actor's dataset items, while the format of items depends on specifying dataset items' format parameter.

POSThttps://api.apify.com/v2/acts/jannovotny~failed-runs-monitor/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>

Hint: This endpoint can be used with both POST and GET request methods, but only the POST method allows you to pass input.

Run Actor synchronously

Runs this Actor and waits for it to finish. The POST payload including its Content-Type is passed as INPUT to the Actor (usually application/json) and the OUTPUT is returned in the HTTP response. The Actor is started with the default options; you can override them using various URL query parameters. Note that long HTTP connections might break.

POSThttps://api.apify.com/v2/acts/jannovotny~failed-runs-monitor/run-sync?token=<YOUR_API_TOKEN>

Hint: This endpoint can be used with both POST and GET request methods, but only the POST method allows you to pass input.

Run Actor

Runs this Actor. The POST payload including its Content-Type header is passed as INPUT to the Actor (typically application/json). The Actor is started with the default options; you can override them using various URL query parameters.

POSThttps://api.apify.com/v2/acts/jannovotny~failed-runs-monitor/runs?token=<YOUR_API_TOKEN>

Hint: By adding the method=POST query parameter, this API endpoint can be called using a GET request and thus used in third-party webhooks.

Get Actor

Returns settings of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/jannovotny~failed-runs-monitor?token=<YOUR_API_TOKEN>

Get list of Actor versions

Returns a list of versions of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/jannovotny~failed-runs-monitor/versions?token=<YOUR_API_TOKEN>

Get list of Actor webhooks

Returns a list of webhooks of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/jannovotny~failed-runs-monitor/webhooks?token=<YOUR_API_TOKEN>