On Aug 8, 2008, at 10:06 AM, Gustin Prudner wrote:

>
> 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.

did you simply try it?

you should be able to access it via ENV as systemu merges that in for  
you

   var = ENV['var']

should be all you need, assuming you specified that var in the call  
the bj submit...


>
>
> 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??
>

use ENV


>
> ~)o
> gustin
>
> entryway software development
> http://www.entryway.net
> -- 
> Posted via http://www.ruby-forum.com/.
>

a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama