简体   繁体   中英

Rails whenever gem error handling

I am using whenever gem to create some cron job to fetch the data from a remote database. My question is , does whenever gem has any functionality to handle errors? suppose connection to db failed during retrieval. Or is there any otherway in rails to read the error from cronjob?

whenere just generate the crontab. If you want some feature describe, you just need implement it in your task

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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