Apify Discord Mirror

Updated 5 months ago

Monitor failed runs

At a glance

The community member has a paid actor set up to check if it works for their customers daily. They want to know if they will automatically get an email if the run fails. The comments suggest that if the actor runs under the community member's account, they would get an email about successful or failed runs. If the actor is not running on their account, they can set up an API call to the apify/send-mail actor to send an email. The community member has disabled getting an email for each run, but they want to get an email only if the run fails. The community members suggest setting up a webhook in the integration tab to get an email on a failed run, but the community member is unsure if Apify.com supports just sending an email for a failed run. The comments indicate that Apify.com does not have a feature to send an email only on a failed run, but the webhook that runs the send-mail actor is a good enough solution. The community members also discuss how to trigger a failed run to test the setup, but there is no definitive answer provided.

Useful resources
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?
1
P
C
H
8 comments
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)
Attachment
image.png
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.
as Pepa wrote, just create webhook in intergration tab, there you can select run failed
Attachment
image.png
thanks, I can definitely setup a webhook but does apify.com support just sending email for failed run?
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.
hmm can I trigger a failed run somehow without having to change the code? so I can check it
just advanced to level 10! Thanks for your contributions! πŸŽ‰
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 πŸ™‚
Add a reply
Sign up and join the conversation on Discord