CA
Crawlee & Apify•3y ago
fascinating-indigo

Monitor failed runs

I have a paid actor and I have set up a scheduled task to daily check if it works for my customers. Will I automatically get an email if the run fails?
8 Replies
Pepa J
Pepa J•3y ago
If the actor runs under your account you would get an email about successfull or failed run. If the actor is not running on your account you may setup an API call for https://apify.com/apify/send-mail actor, which would send you an email. (check integration tab on the actor -> add integration -> and HTTP Webhook)
No description
fascinating-indigo
fascinating-indigoOP•3y ago
thanks, it is running under my account, but I have disabled getting an email for each run, however I want to get an email only if the run fails.
HonzaS
HonzaS•3y ago
as Pepa wrote, just create webhook in intergration tab, there you can select run failed
No description
fascinating-indigo
fascinating-indigoOP•3y ago
thanks, I can definitely setup a webhook but does apify.com support just sending email for failed run?
HonzaS
HonzaS•3y ago
No, I do not think so. I was searching for that feature not so long ago and did not found anything. But webhook that runs the send-mail actor is good enough.
fascinating-indigo
fascinating-indigoOP•3y ago
@HonzaS hmm can I trigger a failed run somehow without having to change the code? so I can check it
MEE6
MEE6•3y ago
@Casper just advanced to level 10! Thanks for your contributions! 🎉
HonzaS
HonzaS•3y ago
I do not know how to trigger failed run. But you can test it with aborted run first. It is pretty good chance that it will work with failed if it works with aborted 🙂

Did you find this page helpful?