nginx - Passenger Kills Background Workers for Delayed Job -


i running rails 4.2 on linux virtual machine. using nginx web server , passenger web application server.

my app runs without issues. recently, started using delayed job send out emails. works fine, problem background worker processes being killed whatever reason, emails not being sent out when should. after ssh server, run following command start background worker:

rake jobs:work & 

this fires off background process , detaches rake command terminal instance, expect process keep running. process appears killed passenger, background tasks won't execute after few minutes.

how can stop passenger killing background tasks?

i figured out! decided run delayed_job process instead. when running rake jobs:work &, started ruby process, passenger kills off. passenger doesn't seem kill off other processes, though.

following delayed job documentation, added following gemfile:

gem 'daemons' 

then ran following in virtual machine:

rails_env=production bin/delayed_job start 

i received permissions error @ first, script didn't run. past this, set delayed_job script have full read/write/execute permissions:

chmod +x bin/delayed_job 

i went away 10 minutes , came back, , process still running , sending out emails!


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -