Follow Along as I Stumble on the Path to Learning RoR

Whenever Gem Without Capistrano

The Whenever gem simplifies the process of using scheduled tasks without learning CRON.  Stated another way, it allows you to schedule CRON jobs without knowing CRON’s abbreviations and syntax by allowing you to enter your scheduled tasks in a schedule.rb file using straightforward language.

When you deploy using Capistrano you can put code in your deploy.rb file so that Whenever tells CRON of any scheduling changes.

However, if you’re like me, and not deploying with Capistrano than you just have to remember to use this command in Linux/Ubuntu:

whenever -i

To confirm that your task was scheduled, you can enter:

crontab -l

This should indicate that your tasks in schedule.rb were scheduled to run via CRON.

Advertisements

Comments are closed.