How to Setup Alerts For Daily Run Statuses
Hi Team Apify. Is there a way on the Apify platform to set up email alerts based on the breakdown of daily run status for an Actor? For example, at the end of each day, we would like to receive an alert email if the number of runs that have timed-out exceeds a certain threshold.
3 Replies
Hello!
Unfortunately, there is no such built-in functionality. Nonetheless, you could do one of these two things:
1. Every day, you could run an Actor that fetches all the runs from that day and sends a report according to the condition you prefer. You can use the Apify API to fetch the runs and their status: clients for JavaScript and Python are also available.
2. Run a web server exposing an endpoint that you can contact using a web-hook every time an actor fails/times-out. Periodically, you could send a report based on how many times that endpoint was called.
For sending notifications, you could call an actor from the store, for convenience, such as this or this.
Events | Platform | Apify Documentation
Specify the types of events that trigger a webhook in an Actor or task run. Trigger an action on Actor or task run creation, success or failure.
conscious-sapphireOP•12mo ago
Thanks for the answer. We'll explore the options that you've provided.
extended-yellow•11mo ago
Also, You can tyr to use this actor from the store:
https://apify.com/jannovotny/failed-runs-monitor
Apify
Failed Runs Monitor · Apify
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 datas...