Displaying 9 results from an estimated 9 matches for "worker_dir".
Did you mean:
work_dir
2007 Jun 21
0
config file questions
example:
:host: 192.168.1.101
:protocol: druby
:worker_dir: lib/workers
:rails_env: production
:pool_size: 15
:load_rails: true
:timer_sleep: 60
:acl:
:deny: all
:allow: localhost 192.168.1.*
:order: deny allow
I have this config file on 2 app servers running rails. The 2 servers are
running behind a load balancer. I''m starting the backgr...
2007 Sep 24
3
Trouble using backgroundrb
...ass="progress"></div>
<%= periodically_call_remote(:url => {:action => ''get_progress''}, :frequency => 1) %>
--------------------conf/backgroundrb.yml--------------------
---
:host: localhost
:port: 2000
:rails_env: development
:load_rails: true
:worker_dir: lib/workers
Your help is *very much* appreciated!
Thanks,
Ger Apeldoorn
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
2007 Jun 06
2
struggling with stability
Greetings all,
Unit tests are passing, but I''m having mucho problems getting brb to
run without exceptions for more than 6 hours.
I''m seeing a mixture of the following 2 exceptions:
20070605-11:26:56 (21497) failed to find slave socket - (RuntimeError)
20070605-11:26:56 (21497) /usr/local/lib/ruby/gems/1.8/gems/
slave-1.2.1/lib/slave.rb:435:in `initialize''
2006 Nov 20
2
schedule support on latest svn, a question
...results[:done_with_do_work] ||= true
end
end
DocumentSorterWorker.register
Basically does nothing but log that it''s running.
After running "script/server run" this is what I have in
backgroundrb_server.log:
20061120-17:04:52 (31960) port: 2000
20061120-17:04:52 (31960) worker_dir: /home/ed/Documents/test/lib/workers
20061120-17:04:52 (31960) protocol: drbunix
20061120-17:04:52 (31960) uri: drbunix:///tmp/backgroundrbunix_localhost_2000
20061120-17:04:52 (31960) config:
/home/ed/Documents/test/config/backgroundrb.yml
20061120-17:04:52 (31960) rails_env: development
20061120-...
2007 May 09
0
Neophyte needs help!
....0 0.6 16484 13372 ? S 21:20 0:00
backgroundrb
todd 6866 0.0 0.6 16320 13168 ? S 21:20 0:00
backgroundrb_logger
todd 6867 0.0 0.6 16520 13384 ? S 21:20 0:00
backgroundrb_results
My config file looks like this:
:host: localhost
:port: 22222
:worker_dir: lib/workers
:rails_env: development
:pool_size: 15
:acl:
:deny: all
:allow: localhost 127.0.0.1
:order: deny allow
When I try to run the example, I get a NameError because it can''t seem
to
find my ExampleWorker class:
ruby backgroundrb_example
(drbunix:///tmp/backgroundrbunix...
2007 May 31
0
Slave socket problem again
...ckets directory gets a new entry, which is never
deleted... maybe this is a problem - new sockets are created, but
never deleted and system runs out of resources?
Currently my configuration is (backgroundrb.yml):
:port: 2000
:rails_env: development
:host: localhost
:protocol: druby
:pool_size: 5
:worker_dir: lib/workers
(backgroundrb_schedules.yml)
sql_scheduler:
:class: :s_e_work
:job_key: :sql_exe
:trigger_args: 5 * * * * * *
Worker code is:
class SEWork < BackgrounDRb::Worker::RailsBase
def do_work(args)
# This method is called in it''s own new thread
begin
scrip...
2007 Mar 13
3
Scheduled worker dies after about 30-45 runs
...oad_rails: true
20070312-18:14:31 (24026) uri:
drbunix:///tmp/backgroundrbunix_localhost_22222
20070312-18:14:31 (24026) config:
/home/david/redclay/config/backgroundrb.yml
20070312-18:14:31 (24026) temp_dir: /tmp
20070312-18:14:31 (24026) database_yml: config/database.yml
20070312-18:14:31 (24026) worker_dir: /home/david/redclay/lib/workers
20070312-18:14:31 (24026) protocol: drbunix
20070312-18:14:31 (24026) socket_dir: /tmp/backgroundrb.24026
20070312-18:14:31 (24026) environment: development
20070312-18:14:31 (24026) host: localhost
20070312-18:14:31 (24026) acl: denyallallowlocalhost 127.0.0.1order...
2007 Mar 13
5
worker starting twice
...9;'s the
backgroundrb_server.log from the same period of time:
20070313-15:45:17 (5594) Starting BackgrounDRb Server
20070313-15:45:17 (5594) acl: denyallallowlocalhost 127.0.0.1orderdeny allow
20070313-15:45:17 (5594) temp_dir: /tmp
20070313-15:45:17 (5594) port: 2000
20070313-15:45:17 (5594) worker_dir: /Users/jnutting/work/m_project/lib/workers
20070313-15:45:17 (5594) protocol: drbunix
20070313-15:45:17 (5594) uri: drbunix:///tmp/backgroundrbunix_localhost_2000
20070313-15:45:17 (5594) config:
/Users/jnutting/work/m_project/config/backgroundrb.yml
20070313-15:45:17 (5594) rails_env: development...