BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

InfoQ Article:Introduction to BackgrounDRb

| by Obie Fernandez Follow 0 Followers on Jun 27, 2006. Estimated reading time: less than one minute |

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 Stage
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.

Tell us what you think

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

Email me replies to any of my messages in this thread

Missing javascript includes in view by Oliver Kiessler

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

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

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

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

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

Email me replies to any of my messages in this thread

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

Email me replies to any of my messages in this thread

5 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT