I have a few delayed_jobs that require data to be loaded from the
database and kept in memory. I've set up an initializer to load that
data (this is a Rails 3 app), but I'm not sure how to only run it on a
worker process and not my dynos. I noticed, while tooling around in
`heroku console`, that ENV["HEROKU_TYPE"] == "Dyno" - I was hoping
that in a worker process it would be "Worker", but that doesn't seem
to be working, and I don't know how to inspect the ENV hash from a
worker instance.

Any pointers? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to