Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

How to Schedule Tasks with Ruby

By Peter Cooper / March 30, 2007

Ilya Grigorik has written a article demonstrating three different ways you can schedule tasks to run using Ruby, including a simple thread based scheduler, a OpwnWFEru based scheduler, and a BackgrounDRB based scheduler. A notable omission is RailsCron, which provides another alternative for Rails users.

Comments

  1. Eldon Alameda says:

    I believe that the author of RailsCron removed the project. If i recall correctly I believe he wrote that there were issues with the fact that RailsCron was threaded while Rails wasn't, and that not being able to control it well via capistrano were some of his main reasons. At the time he had written a new plugin that generated daemons (which could be controlled via Capistrano) and was recommending using BackgroundDRB for people that needed something more similar to RailsCron.

  2. Peter Cooper says:

    Oh okay, that's useful to know!

  3. RSL says:

    The daemons plugin is perfectly serviceable though. It's a bit, shall we say... "light" on the documentation but once you get the gist it makes a lot of sense.

  4. Pingback: FEtMab - Die Browserspiele-Manufaktur

Other Posts to Enjoy

Twitter Mentions