BT

InfoQ Homepage News InfoQ Article:Introduction to BackgrounDRb

InfoQ Article:Introduction to BackgrounDRb

Bookmarks

As the problem domain of your Rails applications expands, you may need to run computationally intensive or long running background tasks. How can you run these long background tasks without your web server timing out? And how do you display the progress to your users?

Read: Introduction to BackgrounDRb

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Missing javascript includes in view

    by Oliver Kiessler /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    In order to make your example work one needs to include the rails javascript libraries in the "start_background_task.rhtml" view:

    <%= javascript_include_tag :defaults %>

  • drb and novarug

    by Tom Copeland /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Brian Sletten just did a drb presentation at the Northern VA Ruby User's Group; slides and whatnot are on novarug.org.

  • Corrections, for new versions

    by Olle Jonsson /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Development has been swift... and some of the code in the article is now out-of-date.


    progress_percent = MiddleMan.get_worker(session[:job_key]).progress


    Should nowadays just be:


    progress_percent = MiddleMan.worker(session[:job_key]).progress

  • installing problem

    by andrew d /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    when installing and creating new workers, remember to restart your rails server. I was trying to run the example but it didn't work, once I restarted WEBrick everything worked

  • This Article is Obsolete

    by hemant kumar /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Folks,

    Above Article on BackgrounDRb is completely obsolete. Please do not use instructions provided here as a tutorial for using BackgrounDRb. It has caused enough pain and agony for many users. New documentation for bdrb is available at, backgroundrb.rubyforge.org and one should look there before referring anything else.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.