I have a Rails 3.x application with Resque. I run the resque command with:
nohup rake RAILS_ENV=production environment resque:work QUEUE='*' & >>/tmp/resque.log 2>> /tmp/resque.err.log
Every other day the process dies, but the two output files are always empty. Any other way of figuring out why the Resque process goes down?
Try the super awesome Pry console. This is similar to
irbonly much more advanced.You can use
binding.pryinside yourperformmethod or preferably in a hook which will start up a pry console using which you can debug. Helped me in similar situations a lot.