Displaying 20 results from an estimated 94 matches for "bdrb".
Did you mean:
bdb
2008 May 30
5
Upper limit to number of jobs queued by BDRb?
I use BDRb to process RSS feeds for users on my site (http://feedflix.com).
I have a batch job that queries the DB for records that haven''t been updated
in the last so many hours and kicks off a background job for each of them.
If N records are returned by the DB, N background jobs gets queued and g...
2007 Dec 12
3
BDRB, new version questions
Hi,
we are trying to use BDRB for background processing of long-running
reports, and have two issues - one is that worker does not see our
Report class from Rails, throws a:
/var/apps/ror_trunk/vendor/plugins/backgroundrb/server/master_worker.rb:22:in
`load'': undefined class/module Report (ArgumentError)
from...
2008 Nov 20
1
Stopping bdrb from another process gets the process killed
Hi, I''ve been having some issues integrating bdrb on a cruisecontrolrb
server
It''s related to the way we stop the bdrb server. The thing is, right now
when we stop the process we are killing the parent of the group of the
process. This is ok if you''re running script/backgroundrb stop directly from
the console, but if I''m...
2007 Nov 16
1
Backgroundrb with Load Balancing Rails engines
...r serving the single application. All Rails
instances share the same database and use the database as a session
storage. Memcached is also part of the picture.
I''m looking into using Backgroundrb for some large uploads / parsing
task that provide progress status updates (via ajax calls). Bdrb would
run on each Rails server using drbunix (domain sockets) and not on the
dedicated / shared Bdrb server.
In this scenario it is not known in which Rails engine will the status
update request land. It may or may not hit the engine where the Bdrb
worker has been created( we don''t plan f...
2007 Dec 15
10
1) Error 2) sending request to a specific worker
Hello !
1) I have this error logged by bdrb:
undefined method `send_request'' for nil:NilClass
framework/packet_master.rb:58:in `ask_worker''
backgroundrb/server/master_worker.rb:59:in `process_work''
backgroundrb/server/master_worker.rb:16:in `receive_data''
backgroundrb/framework/bin_parser.rb:29:in `call...
2008 Jul 05
2
Question on number of processes engendered by BDRb
I have two workers (ie two files in my RAILS_ROOT/lib/workers directory) on
my Rails app. When I run a top on my box, I see *three* processes called
packer_worker_r. Shouldn''t I just be having two? What is the third process
for?
Here is an extract of the output from my top command. The PIDs are 7084,
7085 and 7083.
============================================
PID USER PR NI VIRT
2008 Aug 18
0
bdrb without rails?
Hi,
Just wondering how you setup and get bdrb running without rails?
Many thanks
2006 Nov 04
1
BackgrounDRb Call for help
Hey there bdrb''ers!
I have been so very busy with http://engineyard.com that I have not
had time to complete the new release of backgroundrb. But I have done
substantial work towards it. It is basically an entirely new beast
with a complete rethinking of how it works. I have put up a zip file...
2007 Feb 19
0
Hello world
Hi-
Danny Burkes here from Lingr (http://www.lingr.com). We''re
evaluating bdrb and so far, so good. It''s deployed in staging now
and seems to be working fine. I have a couple of questions that I
couldn''t find references to in the archive, so here it goes-
1. Is there any way to do a "graceful" stop of bdrb? What I mean
is, I want to stop...
2008 May 17
1
Can someone help with this error?
...all,
I get this intermittent error saying OpenURI::HTTPError. At the bottom of
the email is what is reported in my backgroundrb_server_<port>.log file. The
process_netflix_reviews method is parsing (in the background) Netflix''s RSS
feeds. This error also pretty much brings down the BDRb process and to
recover, I am forced to do a
./script/backgroundrb stop
./script/backgroundrb start
Once I''ve done this, it chugs along fine - even for the same URI it crashed
on last. Until at some point in the future it barfs on another URI and I
need to restart BDRb... This has been ha...
2008 May 04
12
best approach to managing workers and getting status
Hi,
I am using backgroundrb to process audio files from a rails
controller. Currently a new worker gets created every time the method
is called on the worker, using this code:
@job_key = MiddleMan.new_worker(:worker
=> :audio_file_worker, :job_key => Time.now.to_i)
MiddleMan.worker(:audio_file_worker,
@job_key).make_new_audio_file(params[:release_id])
I need to create the new
2008 Jan 22
11
Unable to load Models which reference plugins?
I''m using a plugin which adds a method to ActiveRecord::Base
http://similetimelinerailshelper.googlecode.com/svn/trunk/simile_timeline/
This adds an "acts_as" type declaration to the Models, via the file in
vendor/plugins/simile_timeline/lib/simile_timeline.rb Rails is working
with these declarations, and they are being used successfully in
''regular
2008 May 20
1
Couple questions on BDRb and concurrent processing
My Rails site uses BackgroundDRb and I have a couple of questions:
1. Can someone point me to some sample code/examples for how to use
thread_pool? The website doc says to add a line
======
pool_size 10
======
in my Worker class which seems straightforward.
I wasn''t able to understand this part though:
=========
thread_pool.defer(wiki_scrap_url) { |wiki_url| scrap_wikipedia(wiki_url) }
2008 Jan 13
2
{worker} after :end-time worker freaks out
Hi all,
i was using bdrb a while ago and it wasn''t stable enough in version
0.2.1 for doing the job - it loss jobs or did execute only the first one
invoked and so on.
Now i gave the new version a try and i found a bug at playing around.
When i start a worker_method over the normal Unix scheduler bdrb will
st...
2006 Nov 07
2
start a worker when bdrb starts
I am sure..again I am missing something, but I am trying to start a
worker, when backgroundrb starts and it doesn''t seem to work.
Here is my config/backgroundrb_schedules.yml file:
feed_worker:
class: feed_worker
job_key: feed_worker_key
worker_method: do_work
trigger_args:
repeat_interval: 20.minutes
I even tried this from Rails controller:
# def start_feed_worker
#
2007 May 15
4
Need help with singleton worker
...ger_args => { :start => Time.now })
=> 2
>> MiddleMan.schedule_worker(:class => :my_worker, :job_key => :foo,
:worker_method => :do_work, :worker_method_args => "d", :args =>
"_d_", :trigger_args => { :start => Time.now })
=> 3
>>
bdrb log #1:
20070515-13:55:27 (10865) MyWorker#do_work. args: _a_
20070515-13:55:32 (10865) MyWorker#do_work. args: b
20070515-13:56:27 (10865) MyWorker#work done, deleting self. args: _a_
20070515-13:56:32 (10865) MyWorker#work done, deleting self. args: b
bdrb log #2:
20070515-13:55:22 (10864) Lo...
2007 Dec 14
4
Error when loading backgroundrb
I''m getting the following error (when doing script/backgroundrb start)
on my local machine, which is running os x 10.4.11. However, it
works just fine on my linux server.
RAILS_ROOT/vendor/plugins/backgroundrb/lib/../framework/nbio.rb:64:in
`dump_object'': undefined method `write_nonblock'' for #<UNIXSocket:
0x135b5f4> (NoMethodError)
I just grabbed the
2008 Jan 03
1
models loading
Hi there,
In the latest releases bdrb attempts to load all models during startup
routine. We have models that depend on the particular RUBY_PLATFORM
but they live in the same models directory. It seems that the
inability to load them stops bdrb. Could the models requiring /
loading be done one demand, the same as Rails does?
thanks,
e...
2008 Mar 25
1
extending bdrb / running multiple servers
Hi,
Thanks for the help getting the new backgroundrb working, things are
working fabulously now.
I have two questions:
1) I have a few basic methods I need available on all my workers in
order to communicate properly with my application... it seems to make
the most sense right now to subclass BackgrounDRb::MetaWorker, or make
a mixin module, because I''m actually extending some
2007 Dec 17
11
BackgrounDRb release 1.0 available now
...reactor loop. In a nutshell, you are not encouraged to use threads
in your workers now. All the workers are already concurrent, but you
are encouraged to use co-operative multitasking, rather than
pre-emptive. A simple example is,
For implement something like progress bar in old version of bdrb, you would:
- start your processing a thread (so as your worker can receive
further request from rails ) and have a instance
variable ( protected by mutex ) which is updated on progress and
can be send to rails.
- With new backgroundrb, progress bar would be:
proces...