[Backgroundrb-devel] uninitialized constants in worker class

Marc Beyerlin marc.beyerlin at combots.com
Mon Aug 7 10:14:21 EDT 2006


I am new to this list and relatively new to the backgroundrb plugin,. So
first i will say hello to everybody here, especially to Ezra
Zygmuntowicz!

I played a little bit with a dummy worker and so far everything worked
well.
But now i want to do real work in a worker but now i get that error[1].
It looks like that the constants configured in environment* configs are
not available to the worker class. My configuration looks like that[2].

Maybe someone can give me a hint to solve this problem.

Greetz,
Marc Beyerlin



[1] backgroundrb.log:
uninitialized constant SYSTEM_AMS_AVAILABLE - (NameError)
./script/backgroundrb/../../config/../vendor/rails/activerecord/lib/../.
./activesupport/lib/active_support/dependencies.rb:123:in
`const_missing'
./script/backgroundrb/../../config/../components/ams_import.rb:56:in
`get_published_ams_ids'
./script/backgroundrb/../../config/../lib/workers/warehouse.rb:8:in
`do_work'
./script/backgroundrb/../../config/../vendor/plugins/backgroundrb/backgr
oundrb.rb:45:in `start_process'
./script/backgroundrb/../../config/../vendor/plugins/backgroundrb/backgr
oundrb.rb:41:in `start_process'
./script/backgroundrb/../../config/../vendor/plugins/backgroundrb/backgr
oundrb.rb:112:in `new_worker'
C:/Programme/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'
./script/backgroundrb/../../config/../vendor/plugins/backgroundrb/backgr
oundrb.rb:104:in `new_worker'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1552:in
`perform_without_block'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1512:in `perform'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1586:in `main_loop'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1582:in `main_loop'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1578:in `main_loop'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1427:in `run'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1424:in `run'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1344:in `initialize'
C:/Programme/ruby/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
script/backgroundrb/start:84


[2] background.yml
port: "22222"
timer_sleep: 60
load_rails: true
environment: development
host: localhost
database_yml: config/database.yml
acl: 
  deny: all
  allow: localhost 127.0.0.1
  order: deny,allow



More information about the Backgroundrb-devel mailing list