I have a simple rails application with a few controller and some rake tasks. A couple of tasks are executed by cron configured with whenever gem.
One of my task is e
Thanks for this suggestion; it works great for me since I only have one cron task at the moment.
To DRY it up, you could turn the configuration into constants, perhaps via APP_CONFIG
:
https://github.com/cjbottaro/app_config
In addition, you could extend whatever class takes care of task :... do
to wrap everything in exception_notify { }
.