sidekiq队列的优先级

Priorities of queues with sidekiq

对于sidekiq,是否有任何配置可以让一个队列只有在另一个队列为空时才启动?

我有这个配置,我希望优先级为 1 的队列在其他队列完成之前不启动。想过怎么用batch来做,但是作为应用,我觉得没有意义。

:queues:
  - ["tasks", 100]
  - ["products", 80]  
  - ["sellers", 10]
  - ["products", 80]
  - ["seller_types", 1]

队列中的优先级问题很有待改进...

来自documentation

If you want queues always processed in a specific order, just declare them in order without weights:

:queues:
  - critical
  - default
  - low

This means that any job in the default queue will be processed only when the critical queue is empty.