Displaying 4 results from an estimated 4 matches for "first_work".
Did you mean:
first_word
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
2007 Jan 22
1
MiddleMan behavior
...quot;}) works
but when i want to get reference to that object:
::BackgrounDRb::MiddleMan.worker(@second)
yields:
NoMethodError: undefined method `worker'' for BackgrounDRb::MiddleMan:Class
from (drbunix:///tmp/backgroundrbunix_localhost_2999)
(drbunix:///tmp/backgroundrb.8516/first_worker_c6824af92d0ae35bcbba75df4e282
b6f_0_0.158526073008825)
/home/swistak/rails+backgroundrb/lib/workers/first_worker.rb:26:in
`get_second_ref''
from (irb):223
from :0
2007 Jan 22
1
Strange behavior
...t post ticket link - but well - it''s strange
2) when i switch base class from RailsBase to Base i can''t access MiddleMan
- i get error
NameError: uninitialized constant MiddleMan
from (drbunix:///tmp/backgroundrbunix_localhost_2999)
(drbunix:///tmp/backgroundrb.8388/first_worker_30fe4904c2222fa80e54b58d587d7
bb0_0_0.446368947706132)
/home/swistak/rails+backgroundrb/config/../vendor/rails/activerecord/lib/../
../activesupport/lib/active_support/dependencies.rb:123:in `const_missing''
from (drbunix:///tmp/backgroundrbunix_localhost_2999)
(drbunix:///tmp/...
2006 Oct 30
1
Testing
...ted a bare rails project (dubbed "ninja") and generated one worker
"FirstWorker" and did rake test
rake test
(in /home/joshua/tmp/20061030-bdbtest/ninja)
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/unit/first_worker_test.rb"
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'': uninitialized constant Worker (NameError)
from /home/joshua/tmp/20061030-bdbtest/ninja/config/../lib/workers/first_worker.rb:5
from /usr/local/lib/site...