How to Schedule Tasks with Ruby

In Elsewhere, Ruby Tricks, Ruby on Rails, Tutorials

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.

Vaguely Related Posts (Usually)

4 Comment Responses to “How to Schedule Tasks with Ruby”

  1. #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. #2
    Peter Cooper Says:

    Oh okay, that's useful to know!

  3. #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. #4
    FEtMab - Die Browserspiele-Manufaktur Says:

    Periodically executed tasks in your Rails application without any pain ;)

    Hi again,
    the time has come to “release” our first Rails plugin! *wooooooooah*
    It’s mission is really simple: Do things “in” a Rails application periodically, in the background. Ok, sounds like a perfect job for cronjobs...