简体   繁体   中英

Rails and sidekiq : is it possible to assign a name to a job?

使用 Ruby-on-Rails,是否可以为 sidekiq 作业分配一个名称,并使该名称出现在 /sidekiq Web 控制台或其他调试可能性中?

Sidekiq 6.0.1 added support for job tags.

class MyWorker
  include Sidekiq::Worker
  sidekiq_options tags: ['bank-ops', 'alpha']
  ...
end

https://github.com/mperham/sidekiq/blob/master/Changes.md#601

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM