[英]Worker directory for Shoryuken and Sidekiq
I have a rails app where we want to use both sidekiq (redis queue) and shoryuken (sqs queue) for different use cases.我有一个 Rails 应用程序,我们希望将 sidekiq(redis 队列)和 shoryuken(sqs 队列)用于不同的用例。 So now, all the sidekiq workers are defined under app/workers.
所以现在,所有的 sidekiq 工作人员都定义在 app/workers 下。 To separate out shoryuken workers, we thought to define and keep then under app/consumers.
为了分离出 shoryuken 工人,我们考虑将 then 定义并保留在 app/consumers 下。
So we are running this command to start shoryuken所以我们运行这个命令来启动 shoryuken
shoryuken -r ./app/consumers/ -R -C ./config/shoryuken.yml
my question is, does giving the -r options with worker directory path forces shoryuken to load workers from that path?我的问题是,使用工作目录路径提供 -r 选项是否会强制 shoryuken 从该路径加载工作人员?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.