I have a rails app using delayed job, it works fine in development however when I pushed to production it doesn't do process any jobs. Delayed job starts up fine using either one of these commands;
RAILS_ENV=production rake jobs:work
or
RAILS_ENV=production script/delayed_job start
However once the process has started it just sits there and does not process any of the jobs that are in the que. I checked the delayed_job.log and it shows that the process starts up fine but does not throw any errors. And for the heck of it I checked the production.log and there are no errors there as well.
Also if I run
RAILS_ENV=production rake jobs:clear
It will delete the jobs that are in the que, so I don't think it has an issue communicating with mongodb.
So I can add jobs to the que and and can delete jobs from the que I just can't get delayed job to process them.
I'm using
Rails 3.1.1
gem 'delayed_job'
gem 'delayed_job_mongoid'
Any insight will be greatly appreciated
Thanks again for replying, I finally figured it out and it had nothing to do with delayed_job. It had to do with the ruby gem Anemone that could not authorize the database for some reason. I patched it though. Thanks!
--
---
You received this message because you are subscribed to the Google Groups "delayed_job" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delayed_job...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.