Agile Web Development

Build it. Launch it. Love it.

BackgroundFu

If you are looking for a lighter alternative to BackgrounDRb, this plugin might suit your needs.

Vitals

Home http://trix.pl/blog/ruby-on-rails/running-long-background-tasks-in-ruby-on-rails-made-dead-simple
Repository https://svn.trix.pl/public/background_fu
License Rails' (MIT)
Tags Tag_red background backgroundrb threads
Rating (66 votes)
Owner Jacek Becela
Created 9 December 2007

Comments

  • Avatar
    gyver
    10 December 2007

    There's a severe limitation I mentioned in the home page comments: it's single process only. The Background module doesn't have any mean of sharing the jobs across processes : if you have a mongrel cluster, this doesn't work.

  • 10 December 2007

    If you have more than one mongrel, you have to make sure your session stick to one mongrel. This functionality is provided by most proxies (HAProxy does this).

  • Avatar
    10 December 2007

    are there disadvantages to Thread.new { ... } that I don't know about? I would have just done that. ;)

  • 12 December 2007

    I abandoned threads completely. BackgroundFu now relies on Kyle Maxwell's daemon_generator plugin (http://svn.kylemaxwell.com/rails_plugins/daemon_generator/trunk/README). Check BackgroundFu Readme (https://svn.trix.pl/public/background_fu/README) for details.

    @steven: You might want to read my blog post (linked above).

Add a comment