I am attempting to get the env hash from within the worker process.

Seems like it should be meshed into ENV but the documentation is 
unclear.

I accomplished it this way. It works because we ensure only one job with 
a certain tag is run at a time but it isn't ideal.

job = Bj.table.job.find(:first, :conditions => { :tag => 
'product_publisher',
                                                 :state => 'running'
})
env = YAML.load job.env


Is there a better way??


~)o
gustin

entryway software development
http://www.entryway.net
-- 
Posted via http://www.ruby-forum.com/.