Displaying 12 results from an estimated 12 matches for "backgroundrb_results".
2007 Mar 04
6
Backgroundrb spiking CPU after first run on Mongrel cluster
...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 the worker, and then delete
him. All goes well, and the process list still looks like what I posted
a...
2007 Jun 21
0
config file questions
....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:41 (10127) Loading Worker Class File: /var/www/near-
time.net/releases/20070621035836/lib/workers/unzip_worker.rb
3809,1...
2006 Nov 20
2
schedule support on latest svn, a question
.../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 Sechedule:
argsclassdocument_sorter_worker
trigger_typetriggerworker_methoddo_workworker_method_argsclassdocument_sorter_wor...
2007 Mar 13
3
Scheduled worker dies after about 30-45 runs
...026) 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 Worker Class File:
/home/david/redclay/lib/workers/variant_remove_worker.rb
20070312-18:14:31 (24028) Loading Worker Class File...
2007 Jan 27
0
Debugging stale backgroundrb
...ing "eval "ObjectSpace.each_object(Slave){|x| p x if
!x.status}"" I''ve got a strange result though:
#<Slave:0x34c0fb0 @shutdown=false,
@obj=#<BackgrounDRb::Worker::WorkerResults:0x34c0fc4
@worker_results={}, @initial_do_work=true, @results={}, @args=nil,
@jobkey=:backgroundrb_results>, @lifeline=#<Slave::LifeLine:0x34c0858
@pair=[#<Socket:0x34c07e0>, nil], @fds=[9, 10], @pid=27245,
@socket=#<Socket:0x34c07e0>, @object_id=27657260, @owner=27245>,
@socket_creation_attempts=42, @dumped=nil, @pid=27248, @status=nil,
@debug=false, @object=#<DRb::DRbObject:0x3...
2007 Jul 10
0
backgroundrb.ppid
.../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
think of is that it''s the pid of the starting process?
Short of the above, my current wo...
2007 Mar 07
0
Garbage collection kills my logger and results jobs too
...on Backgroundrb
workers 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 ---...
2007 May 31
0
background worker just stops running after some time
.../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 having a sleep call inside my do_work, but I dont like
that...i want to keep my design as simple...
2007 May 09
0
Neophyte needs help!
...oundrb 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 try to run the example, I get a NameError because it can''t seem
to
find my E...
2007 Mar 13
5
worker starting twice
...mp/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 Class File:
/Users/jnutting/work/m_project/lib/workers/mb_sender.rb
20070313-15:45:17 (5594) Loading Worker Class File:
/Us...
2007 Apr 27
0
Backgroundrb running under cygwin - having issue with Railsbase workers
...#39;ve been able to do the 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''...
2007 Jan 04
10
Intermittent "can''t convert Float into Hash" and results.rb
Hi,
I''m using backgroundrb 0.2.1 in a production environment and for most
parts I''m very happy. We are using it to do some heavy video editing on
the server side and it works great except that under, what seems heavy
load the below problem happens intermittently.
The problem has only happened 5 times out of over 500 runs by our
backgroundrb worker.
This is the code in our