Fix attribute inheritance in workers
Only `feature_category` was correctly inherited, in addition to `sidekiq_options` which comes from Sidekiq. For the other attributes, we need to switch to `get_class_attribute` in order to also lookup values on parents. Changelog: changed
显示
- app/workers/all_queues.yml 2 个添加, 2 个删除app/workers/all_queues.yml
- app/workers/concerns/worker_attributes.rb 13 个添加, 13 个删除app/workers/concerns/worker_attributes.rb
- config/sidekiq_queues.yml 10 个添加, 2 个删除config/sidekiq_queues.yml
- doc/development/sidekiq/worker_attributes.md 5 个添加, 0 个删除doc/development/sidekiq/worker_attributes.md
- ee/app/workers/all_queues.yml 1 个添加, 1 个删除ee/app/workers/all_queues.yml
- spec/commands/sidekiq_cluster/cli_spec.rb 9 个添加, 2 个删除spec/commands/sidekiq_cluster/cli_spec.rb
- spec/workers/concerns/worker_attributes_spec.rb 68 个添加, 38 个删除spec/workers/concerns/worker_attributes_spec.rb
加载中
想要评论请 注册 或 登录