我有2个工作人员,我想在同一个队列中运行
class ReportWorker
include Sidekiq::Worker
sidekiq_options :queue => :metrics
#....
end
class ObjectiveWorker
include Sidekiq::Worker
sidekiq_options :queue => :metrics
#....
end
我有一个sidekiq优先级扩展设置,所以Objective worker在优先工作者
之前运行ObjectiveWorker.perform_with_priority(:objective, oid)
但是工作人员是以他们自己独特的队列生成的 - metrics_objective
和metrics_report
我做错了什么?