[Mongrel] Offloading Background Tasks

Supriya Agarwal lists at ruby-forum.com
Wed Apr 23 01:54:43 EDT 2008


Hemant Kumar wrote:
> On Sun, 2008-03-09 at 05:58 +0100, Nathan Esquenazi wrote:
>> Thanks for your responses. Just wanted to reply back that I installed 
>> backgroundrb (the new version) and I definitely appreciate how useful it 
>> is and how it is fairly easy to use.
>> 
>> Thanks for all your hard work Hermant.
> 
> No problems!
> 
> If you are having any problems feel free to shoot your questions on
> BackgrounDRb mailing list.

Hi!

Im using this backgroundrb plugin! The steps i followed for using this 
plugin are as follows: Kindly correct me where i went wrong!

1)rails_apps/app_name/ruby script/plugin install 
http://svn.devjavu.com/backgroundrb/trunk

2) rake backgroundrb:setup

3) ruby script/generate worker example

4)opened example_worker.rb and just wrote :

   1. class ExampleWorker < BackgrounDRb::MetaWorker
   2.   set_worker_name :example_worker
   3.   def create(args = nil)
   4.     # this method is called, when worker is loaded for the first 
time
   5.     logger.info "here"
   6.   end
   7. end

after that i tried  to run #ruby script/backgroundrb start
 and it gave me load error :bdrb_config.rb not found! I tried copying it 
to some directory and then ultimately it popped up another error :
fork function is umimplemented on this machine!
I have also installed the required gems :packets and chronic..

Can someone help me where i went wrong! or give me a step by step 
procedure to start backgroundrb running.
Thanks in advance!
Sup
-- 
Posted via http://www.ruby-forum.com/.


More information about the Mongrel-users mailing list