简体   繁体   English

使用rake任务错误触发器设置电子邮件通知

[英]Setup email notification with rake task error trigger

I have a rake task that uses Feedjira to fetch content from a bunch of RSS feeds that throws an error when a feed changes address. 我有一个rake任务,该任务使用Feedjira从一堆RSS feed中获取内容,当feed更改地址时,这会引发错误。

I'd like to automate an email sent to notify me of the error. 我想自动发送一封电子邮件通知我该错误。 Is there a way to do this? 有没有办法做到这一点?

Thanks! 谢谢!

There is a gem designed to send emails on failed rake tasks, see below link. 有一个gem旨在发送有关失败的rake任务的电子邮件,请参见下面的链接。

https://github.com/nikhaldi/exception_notification-rake https://github.com/nikhaldi/exception_notification-rake

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM