lundi 2 février 2015

Dokku: Delayed jobs not running

Rails 4.1.8, Ruby 2.1.3.


Deployed to AmazonAWS EC2 instance using Dokku. The app is up and running with a custom domain name and appears to generally be working fine.


However, my background jobs (using Delayed Job) don't seem to run for some reason.


In my Procfile, I have: web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb worker: bundle exec rake jobs:work


When I used Dokku to run the command manually: rake jobs:workoff, the jobs that haven't been performed, get performed, and I didn't notice any error, except for a few interesting New Relic notices: ** [NewRelic][02/03/15 07:12:13 +0000 dd87535f31d3 (10)] INFO : delayed_job not available: No DJ worker present ** [NewRelic][02/03/15 07:12:13 +0000 dd87535f31d3 (10)] INFO : Installing DelayedJob instrumentation [part 1/2]


I'm not sure why that is, because when I tail the logs using Dokku, I see that 3 workers processes have been started. The jobs were running fine when I was on Heroku.


On another note, I used Docker to enter the running Container and checked production.log, but it was an empty file, which is a mystery to me, but I guess this is a separate issue.


Aucun commentaire:

Enregistrer un commentaire