It’s just data

Whenever

Ryan Bates: Cron is great for handling recurring tasks, but it is an external dependency with a crazy syntax. In this episode I show you how to use Whenever to create cron jobs with Ruby.

In all of my re-provisioning activities, updating cron was the one piece that I didn’t automate.  Whenever does fill this need quite nicely.  In converting over existing applications, the only issue I encountered is that some of my tasks were executed at times that didn’t match the much simpler syntax that Whenever provides, so I added a few tests and made a fork.  I created a pull request, so hopefully this change (or at least the tests) will be pulled into javan’s tree shortly.


Great!  Ruby (Whenever) is much easier to test than cron.  I have fat fingered cron too often.  Thanks for the pointer.

Cheers,
John

Posted by John Conti at

Wow, this looks great.

Have you heard about a similar library for Python?

Posted by Henrik Lied at

[link]

XML Parsing Error: not well-formed
Location: [link]
Line Number 365, Column 22:<pre class="code">&lt?php

Posted by Tom at

Tom: fixed.  Thanks!

Posted by Sam Ruby at

Add your comment