search for: backgroundrb_logger

Displaying 16 results from an estimated 16 matches for "backgroundrb_logger".

2006 Jun 16
5
BackgrounDRb / Testing Error: uninitialized constant BackgrounDRb
I''m digging into BackgrounDRb and having some problems testing a worker class. The following line in my test (created from script/generate worker Test) throws an error: worker = TestWorker.new(:test_string => "testing...") Error: /activesupport/lib/active_support/dependencies.rb:123:in `const_missing'': uninitialized constant BackgrounDRb (NameError) from
2007 Mar 04
6
Backgroundrb spiking CPU after first run on Mongrel cluster
...ocal/bin/ruby18 /usr/local/bin/mon cwarner 80618 0.0 1.6 57384 50060 ?? S 10:28PM 0:03.26/usr/local/bin/ruby18 /usr/local/bin/mon cwarner 80804 0.0 1.3 46872 39688 ?? S 10:37PM 0:02.43 ruby: backgroundrb (ruby) cwarner 80805 0.0 0.7 21512 20548 ?? S 10:37PM 0:00.07 ruby: backgroundrb_logger (ruby) cwarner 80806 0.0 0.7 21468 20556 ?? S 10:37PM 0:00.06 ruby: backgroundrb_results (ruby) My four Mongrels in the cluster sitting out there, and the three backgroundrb processes. I then proceed to generate a worker using MiddleMan via IRB, get the auto generated job key, look up th...
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''
2007 Jun 21
0
config file questions
...releases/20070621035836/lib/workers 20070621-14:59:39 (10124) protocol: druby 20070621-14:59:39 (10124) uri: druby://192.168.1.101:2000 20070621-14:59:39 (10124) timer_sleep: 60 20070621-14:59:39 (10124) Installed DRb ACL 20070621-14:59:41 (10127) Starting worker: BackgrounDRb::Worker::WorkerLogger backgroundrb_logger (backgroundrb_logger) () 20070621-14:59:41 (10127) Starting worker: BackgrounDRb::Worker::WorkerResults backgroundrb_results (backgroundrb_results) () 20070621-14:59:41 (10127) Loading Worker Class File: /var/www/near- time.net/releases/20070621035836/lib/workers/grab_feed_worker.rb 20070621-14:59:...
2006 Nov 20
2
schedule support on latest svn, a question
...col: 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-17:04:52 (31960) Starting worker: BackgrounDRb::Worker::WorkerLogger backgroundrb_logger (backgroundrb_logger) () 20061120-17:04:52 (31960) Starting worker: BackgrounDRb::Worker::WorkerResults backgroundrb_results (backgroundrb_results) () 20061120-17:04:52 (31960) Loading Worker Class File: /home/ed/Documents/test/lib/workers/document_sorter_worker.rb 20061120-17:04:52 (31960) Loading...
2006 Jun 21
4
one more suggestion for backgroundrb
...b/backgroundrb.rb =================================================================== --- script/backgroundrb/lib/backgroundrb.rb (revision 16) +++ script/backgroundrb/lib/backgroundrb.rb (working copy) @@ -29,7 +29,11 @@ # the log via @logger def initialize(args) @logger = BACKGROUNDRB_LOGGER - Thread.new { do_work(args) } + begin + Thread.new { do_work(args) } + rescue Exception => e + @logger.error e.inspect + end end end
2007 Mar 13
3
Scheduled worker dies after about 30-45 runs
...acl: denyallallowlocalhost 127.0.0.1orderdeny ,allow 20070312-18:14:31 (24026) rails_env: development 20070312-18:14:31 (24026) timer_sleep: 60 20070312-18:14:31 (24026) port: 22222 20070312-18:14:31 (24026) pool_size: 5 20070312-18:14:31 (24028) Starting worker: BackgrounDRb::Worker::WorkerLogger backgroundrb_logger (backgroundrb_logger) () 20070312-18:14:31 (24028) Starting worker: BackgrounDRb::Worker::WorkerResults backgroundrb_results (backgroundrb_results) () 20070312-18:14:31 (24028) Loading Worker Class File: /home/david/redclay/lib/workers/variant_addition_worker.rb 20070312-18:14:31 (24028) Loading Wo...
2007 Jan 27
0
Debugging stale backgroundrb
...uot;drbunix:///tmp/backgroundrb.27243/backgroundrb_results_0_0.488948936927155", @psname="backgroundrb_results", @threadsafe=false> #<Slave:0x34d7fa8 @shutdown=false, @obj=#<BackgrounDRb::Worker::WorkerLogger:0x34d81c4 @initial_do_work=true, @results={}, @args=nil, @jobkey=:backgroundrb_logger>, @lifeline=#<Slave::LifeLine:0x34d7864 @pair=[#<Socket:0x34d77ec>, nil], @fds=[5, 6], @pid=27245, @socket=#<Socket:0x34d77ec>, @object_id=27704370, @owner=27245>, @socket_creation_attempts=42, @dumped=nil, @pid=27246, @status=nil, @debug=false, @object=#<DRb::DRbObject:0x34...
2007 Jul 10
0
backgroundrb.ppid
...drb task. jodi at soup/var/www/the-soup/current $ cat log/backgroundrb.ppid 23182 jodi at soup/var/www/the-soup/current $ ps -efl 1 S deploy 23184 1 0 75 0 - 27056 stext 11:27 ? 00:00:04 backgroundrb 1 S deploy 23186 23184 0 76 0 - 14444 - 11:27 ? 00:00:00 backgroundrb_logger 1 S deploy 23187 23184 0 76 0 - 14768 - 11:27 ? 00:00:00 backgroundrb_results 0 R jodi 23799 23755 0 76 0 - 676 - 14:06 pts/0 00:00:00 grep backgroundrb Does this make sense? Since I''m starting backgroundrb with capistrano, the only thing I can...
2007 Mar 07
0
Garbage collection kills my logger and results jobs too
...older than 30 minutes: class WorkerCleaner def self.remove_stale_workers MiddleMan.gc!(Time.now - 60*30) end end I stuck is under /lib in my Rails app and run it using script/runner from a cron job. The only problem I''m seeing is that this script kills my backgroundrb_results and backgroundrb_logger jobs after they''ve been running for more than 30 minutes. Is this expected? How can I alter this script to ignore the results and logger jobs and let them continue to run while cleaning up anything else that has expired? Thanks, Matthew -------------- next part -------------- An HTML atta...
2007 May 31
0
background worker just stops running after some time
...ruby /usr/local/bin/mongrel_rai mongrel 636 0.0 3.2 35888 32040 ?? S 10:47AM 2:33.56/usr/local/bin/ruby /usr/local/bin/mongrel_rai root 678 0.0 0.2 39076 1816 ?? S 10:47AM 2:22.97 ruby: backgroundrb (ruby) root 679 0.0 0.0 20824 0 ?? IW - 0:00.00 ruby: backgroundrb_logger (ruby) root 681 0.0 0.0 20824 0 ?? IW - 0:00.00 ruby: backgroundrb_results (ruby) root 688 0.0 0.0 67288 0 ?? IW - 0:00.00 ruby: alerts_worker_alerts_key (ruby) root 2266 0.0 0.0 348 224 p0 R+ 4:42PM 0:00.00 grep ruby I have thought of...
2007 May 09
0
Neophyte needs help!
...######################################################### I also started the backgroundrb server, and it and the other processes seem to be running fine: todd 6865 0.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...
2006 Jun 28
1
How to add some process control...
...ey) if @timestamps.has_key?(key) } end Inside BackgrounDrb:Rails: you can use terminate() to establish the checkpoints/killpoints inside your job code, or check_terminate/terminate? to check, run cleanup code, and then raise the :safe_to_kill signal. def initialize(job_key, args={}) @logger = BACKGROUNDRB_LOGGER @thread = nil; @job_key = job_key @args = args end def start_process begin @thread = Thread.new do Thread.current[:safe_to_kill] = ConditionVariable.new Thread.current[:kill] = false do_work(@args) end rescue Exception => e @logger.error e.inspect end e...
2007 Mar 13
5
worker starting twice
...k/m_project/config/backgroundrb.yml 20070313-15:45:17 (5594) rails_env: development 20070313-15:45:17 (5594) socket_dir: /tmp/backgroundrb.5594 20070313-15:45:17 (5594) pool_size: 5 20070313-15:45:17 (5594) host: localhost 20070313-15:45:17 (5594) Starting worker: BackgrounDRb::Worker::WorkerLogger backgroundrb_logger (backgroundrb_logger) () 20070313-15:45:17 (5594) Starting worker: BackgrounDRb::Worker::WorkerResults backgroundrb_results (backgroundrb_results) () 20070313-15:45:17 (5594) Loading Worker Class File: /Users/jnutting/work/m_project/lib/workers/mb_receiver.rb 20070313-15:45:17 (5594) Loading Worker...
2007 Apr 27
0
Backgroundrb running under cygwin - having issue with Railsbase workers
...e same. My initial test worker runs fine as a non-RailsBase worker. Once I switch it to load rails as part of the worker, I run into a problem with fork, namely: Resource temporarily unavailable - fork(2) - (Errno::EAGAIN). My debug log statements within Middleman show that backgroundrb_results and backgroundrb_logger get loaded fine, but any rails worker dies in the new_worker method of middleman, when attempting to create the slave_obj. Any ideas? I''ve done a significant amount of poking around the cygwin lists but haven''t found anything of import to relate. I''d love to hear from any...
2006 Jun 15
5
Cannot invoke ActiveRecord subclass accessors in DRb worker
Hi there, I''m trying to create a worker to do some asynchronous web client work and update the data model with its results. It seems, however, that every call I make to an ActiveRecord subclass causes the whole thing to block. At least I think it''s blocked. Right now I''m just using debug log output. Is there a decent way to debug/test workers I can try? Is there any