Displaying 20 results from an estimated 5000 matches similar to: "Problem with blocking workers"
2007 Apr 07
4
Error when starting Backgroundrb
Hi Folks,
I want to set up backgroundrb on my laptop to do some tests. But when I
run "scripts/background start" I get this error:
ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/daemonize.rb:160:in
`setsid'': the setsid() function is unimplemented on this machine
(NotImplementedError)
from
ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/daemonize.rb:160:in
2007 May 15
6
Behaviour of pool_size setting
Hi,
I have backgroundrb running to decouple the execution of massive
business logic from an ActionWebservice request. The service is designed
to take some configuration parameters and fire a lot of background
workers to do the requested work. Due to performance reasons I want to
limit the number of workers to a maximum number of 30. But when I start
a configuration that requires for example
2008 Jan 09
1
Windows Support?
Hi Folks,
it?s quite a while that I used BackgrounDRb and I was hoping that I get
the chance on working with it again, as I read so many promising things
here in the list!
When I last worked with it (Rel. 0.21) there was no way of running it
under Windows. Is this restriction still valid? I hope not, as I
desperately need to get it working with InstantRails in a Windows
environment for some new
2007 Mar 05
2
Scheduled workers only run once unless you call self.delete inside the worker
I had a worker scheduled to run every minute with
backgroundrb_schedules.yml:
ebay_runner:
:class: :ebay_auction_worker
:job_key: :ebay_auction_runner
:trigger_type: :cron_trigger
:trigger_args: 0 * * * * * *
This worker posts an auction to eBay from a queue of auctions every minute.
I was having a problem where the worker would run ok the first time, but
never any subsequent minutes
2008 Apr 03
3
remote workers
Hi,
I am kind of lost on how to configure the backgroundrb workers to run
from a remote host?
Suppose I have my main rails app in 1.2.3.4, and I want my
backgroundrb workers to run from a machine with ip 5.6.7.8, what do I
put
in my backgroundrb.yml file? How will my workers know which database
server to load the models from?
Thanks,
Ram
2006 Jul 31
1
Creating workers on server startup?
I have workers that need to be created when I run rake
backgroundrb:start. Where do I put this code?
Thanks for your help.
Thank You,
Ben Johnson
E: bjohnson at contuitive.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060731/d201c052/attachment.html
2008 May 04
3
Rails Configuration in Workers
I override some Rails'' configuration options in my project, like:
config.database_configuration_file = "#{RAILS_ROOT}/local/config/
database.yml"
But they aren''t picked up in BackgroundRB because Rails ActiveRecord
is just initialized directly in MasterWorker#load_rails_env:
db_config_file = YAML.load(ERB.new(IO.read("#{RAILS_HOME}/
2007 May 22
4
Recommendations for eternally-running backgroundrb workers?
I''ve got some workers that I want to have running all the time. Right
now I''m just launching them manually, by requesting a special page in
my rails app that includes lines like:
MiddleMan.new_worker(:class=> :receiver, :job_key=>:r,
:args=>{:sleep_time=>10})
This strikes me as a really weak way to fire up my workers. I
basically want to automate things so
2006 Aug 01
4
Creating workers from workers?
Since MiddleMan is an uninitialized constant in a worker how do you
create new workers inside a worker?
Thank You,
Ben Johnson
E: bjohnson at contuitive.com
O: 800-341-6826
M: 817-229-4258
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060731/75a77fa6/attachment-0001.html
2007 May 03
1
Reloadable workers? (Rails Testing without DRb restart?)
Hey guys, I just opened up my first installation of BackgrounDRb and
so far I love it. I''ll have to share this plugin at my next Ruby
Brigade meeting!
I have one question though: Is there a way that I can run the
BackgrounDRb server in a "test" mode that will reload my changes
without having to restart every time? (Similar to how mongrel does
this with my
2007 Nov 07
2
workers cleanup
Hi,
I''m using backgroundrb 0.2.1 and having problem with worker processes
staying around when the rails application does not explicitly delete
them.
Is there a way to automatically delete the worker processes when it
has completed the job?
Also does killing the process manually (using kill command) harm the
backgroundrb server? I have some occasions where the backgroundrb
server just
2007 Sep 18
1
best practices for robust workers
Hi folks,
I''ve got some BackgroundRB workers to handle a long running task
(triggered by a user) that work very well on my staging server, and I
just wanted to check to see if anyone had any advice before I put it
into production.
When I start the worker (which performs an import), I write a record
to my database for each import. The record gets updated by the worker
to
2007 Oct 25
3
Mocking Workers in Backgroundrb
Hi
Has anyone mocked a call like the following for backgroundrb?
MiddleMan.new_worker(:class => :admin_email_worker, :args => params
[:email])
I cannot seem to find the correct manner to do it.
Would have liked to be able to do MiddleMan.should_receive
(:new_worker).with(:class => :admin_email_worker, :args => {"body" =>
"my message"})
Cheers
Shane
2007 Aug 01
4
stability of using scheduled workers
Hi,
Going through the archive, and just keeping a general watch on this list seems to indicate that there are some issues using scheduling with backgroundrb. I need a worker that will perform some actions on an hourly interval. These actions will require access to several of the models in my application. I am currently using backgroundrb to handle processing of files, where I spawn a worker to
2007 Jun 20
2
send objet between 2 workers
Hi,
I''m using backgroundrb but I have 2 problems with it.
First is when I launch a thread Toto from the do_work method. Toto can''t
access to a class variable defined before... (undefined method `+'' for
nil:NilClass)
I suspect that thread is launched when backgroundrb start but the worker not
..
My code is :
class MonWorker < BackgrounDRb::Worker::RailsBase
2008 Apr 01
1
Testing workers
Could someone help me with some information on how to handle functional
tests that rely on Backgroundrb?
I didn''t find anything on the Backgroundrb website not on a couple of Google
searches.
Links would be fine.
I keep getting the following error in my functional tests:
"Error while connecting to the backgroundrb server"
Thanks
Andrew Timberlake
andrew at
2006 Oct 16
6
accessing session data in worker
Is there something special I need to do to access session data in a worker?
I''m using an AR session store. I''ve been working with Ezra''s tutorial, modifying it a little here and there to figure it out. So I changed the progress bar to a simple count-down in the worker which sends back the count to display in the view. No big deal. But if I try to access session
2007 Aug 08
3
Cannot start workers in production mode
I have a job that I am starting from a Rails controller in production mode
using MiddleMan:
MiddleMan.new_worker(:class => :import_ccg_category_worker, :args => {
:category_id => @category.id, :remote_category_id =>
params[:remote_category_id], :description => "Importing CCG products for #{@
category.name}" })
Both of the category ID variables are just basic integers. I
2008 Mar 20
2
can''t call any methods on workers
Hi,
I''m a long time backgroundrb user, still stuck using the very ancient
original version from Ezra (not even Ezra''s 2.0 version, I''m using the
one that didn''t really have a version number). The 2.0 version did
very little but crash for me. Anyway I finally got some time set
aside to try out this new version you all have been developing.
2006 Jul 03
6
Req: Workers as singletons
Hi,
it would be nice to be able to specify workers as singletons. By this
I mean that every call to the new_worker method returns the same
instance of said worker. This can be done transparently either by
adding a new argument to new_worker (something like :singleton =>
true) or adding a new method, like I did in my installation of
BackgrounDrb:
def get_worker_by_class(klass)