How to start resque not using rails

倾然丶 夕夏残阳落幕 提交于 2019-12-11 05:53:31

问题


I am using ruby (not rails) and I have install resque gem. According to the manual, I should start the workers using the following command:

resque work

But this command doesn't start the workers at all (I have checked that resque file in bin/ and it doesn't accept 'work' at all).

Here is the output:

Usage: resque [options] COMMAND

Options:
    -r, --redis [HOST:PORT]          Redis connection string
    -N, --namespace [NAMESPACE]      Redis namespace
    -h, --help                       Show this message

Commands:
  remove WORKER   Removes a worker
  kill WORKER     Kills a worker
  list            Lists known workers

回答1:


Created rakefile with:

require "resque/tasks"

and run resque:

rake resque:work QUEUE=*


来源:https://stackoverflow.com/questions/24726631/how-to-start-resque-not-using-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!