I'm running Rake tasks on Heroku with the scheduler add-on, as part of a Rails app. Is there an easy way to get notification emails if a task fails (i.e., raises an exception)? Ideally the email would include the stack trace and also any output generated up to that point by the task.
I ended up fixing my issue more comprehensively by writing an extension to exception_notification for Rake tasks, called notification_exception-rake. I also wrote a blog post specifically about how to use it on Heroku.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With