【发布时间】:2011-11-08 12:17:07
【问题描述】:
我需要启动 4 个 resque worker,所以我使用了以下命令
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
但是进入网页界面,它实际上是启动了 8 个工人。有两个父进程,每个进程有 4 个子进程。以下是进程的树视图:
ruby /code_base/bundle/ruby/1.9.1/bin/rake 环境 resque:workers RAILS_ENV=production COUNT=4 QUEUE=* VERBOSE=1 PIDFILE=tmp/pids/resque_worker.pid \_ [红宝石] \_ resque-1.15.0: 等待 * | \_ [红宝石] \_ resque-1.15.0: 等待 * | \_ [红宝石] \_ resque-1.15.0: 等待 * | \_ [红宝石] \_ resque-1.15.0: 等待 * \_ [红宝石] ruby /code_base/bundle/ruby/1.9.1/bin/rake 环境 resque:workers RAILS_ENV=production COUNT=4 QUEUE=* VERBOSE=1 PIDFILE=tmp/pids/resque_worker.pid \_ [红宝石] \_ resque-1.15.0: 等待 * | \_ [红宝石] \_ resque-1.15.0: 等待 * | \_ [红宝石] \_ resque-1.15.0: 等待 * | \_ [红宝石] \_ resque-1.15.0: 等待 * \_ [红宝石]不知道是什么导致额外进程启动?
【问题讨论】:
标签: resque