Apify Discord Mirror

Updated 5 months ago

How to Setup Alerts For Daily Run Statuses

At a glance

The community member is looking for a way to set up email alerts based on the daily run status of an Apify Actor, specifically if the number of timed-out runs exceeds a certain threshold. The community members provided two suggestions:

1. Run an Actor that fetches all the runs from the day and sends a report based on the specified condition, using the Apify API to fetch the runs and their status.

2. Run a web server with an endpoint that can be contacted via a webhook when an Actor fails or times out, and then periodically send a report based on the number of times the endpoint was called. For sending notifications, the community members suggested using an Actor from the Apify Store.

Additionally, the community members mentioned a specific Actor from the Apify Store called "Failed Runs Monitor" that the community member could try using.

Useful resources
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.
M
e
O
3 comments
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.
Thanks for the answer. We'll explore the options that you've provided.
Also, You can tyr to use this actor from the store:
https://apify.com/jannovotny/failed-runs-monitor
Add a reply
Sign up and join the conversation on Discord