I need to run 4 work frames, so I used the following command
bundle exec rake environment resque:workers RAILS_ENV=production COUNT=4 QUEUE=* VERBOSE=1 PIDFILE=tmp/pids/resque_worker.pid >> log/resque_worker_QUEUE.log
But, having switched to the web interface, in fact, he began work with 8 people. There were two parent processes with 4 child processes each. Below is a view of the process tree:
ruby /code_base/bundle/ruby/1.9.1/bin/rake environment resque: workers RAILS_ENV = production COUNT = 4 QUEUE = * VERBOSE = 1 PIDFILE = tmp / pids / resque_worker.pid
\ _ [ruby]
\ _ resque-1.15.0: Waiting for *
| \ _ [ruby]
\ _ resque-1.15.0: Waiting for *
| \ _ [ruby]
\ _ resque-1.15.0: Waiting for *
| \ _ [ruby]
\ _ resque-1.15.0: Waiting for *
\ _ [ruby]
ruby /code_base/bundle/ruby/1.9.1/bin/rake environment resque: workers RAILS_ENV = production COUNT = 4 QUEUE = * VERBOSE = 1 PIDFILE = tmp / pids / resque_worker.pid
\ _ [ruby]
\ _ resque-1.15.0: Waiting for *
| \ _ [ruby]
\ _ resque-1.15.0: Waiting for *
| \ _ [ruby]
\ _ resque-1.15.0: Waiting for *
| \ _ [ruby]
\ _ resque-1.15.0: Waiting for *
\ _ [ruby]
Failed to find out what causes the additional process?
source share