我的sidekiq.yml配置文件定义了以下队列
---
:queues:
- [high_priority, 2]
- mailers
- default
- low_priority当Sidekiq启动应用程序时,应用程序日志正确地显示队列已被捕获。
...
Booting Sidekiq 3.5.0 with redis options {:url=>"redis://localhost:6379/", :network_timeout=>3}
...
Starting processing, hit Ctrl-C to stop
{:queues=>["high_priority", "high_priority", "mailers", "default", "low_priority"], :labels=>[], ...但是,当我尝试使用侧基API从rails console检索队列列表时,我只看到default队列
> Sidekiq::Queue.all
=> [#<Sidekiq::Queue:0x000001061f4760 @name="default", @rname="queue:default">]API没有返回所有队列的任何原因吗?
发布于 2015-10-16 23:13:40
在Redis中不会创建队列,直到一个作业被推送给他们。
https://stackoverflow.com/questions/33180344
复制相似问题