草庐IT

ruby-on-rails - Resque multiple workers in development 模式

coder 2025-05-10 原文

您好,在开发中可以同时运行多个 Resque worker 吗?我找到了这段代码,但不确定它是否会工作以及如何工作..

http://pastebin.com/9GKk8GwR

到目前为止我使用的是标准

bundle exec env rake resque:work QUEUE='*'

redis-server /usr/local/etc/redis.conf

最佳答案

您需要添加一个COUNT 环境变量,然后将resque:work 更改为resque:workers。例如启动 3 个 worker:

bundle exec env rake resque:workers QUEUE='*' COUNT='3'

关于ruby-on-rails - Resque multiple workers in development 模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10424087/

有关ruby-on-rails - Resque multiple workers in development 模式的更多相关文章

随机推荐