Skip to content

Commit

Permalink
Add worker kill priority to workers only used by the vmware provider
Browse files Browse the repository at this point in the history
This is needed in order to seed the MiqWorkerType model
  • Loading branch information
carbonin committed Nov 20, 2019
1 parent be697fc commit f2c4918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/miq_ems_refresh_core_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def self.ems_class
ManageIQ::Providers::Vmware::InfraManager
end

def self.kill_priority
MiqWorkerType::KILL_PRIORITY_REFRESH_CORE_WORKERS
end

def friendly_name
@friendly_name ||= begin
ems = ext_management_system
Expand Down
4 changes: 4 additions & 0 deletions app/models/miq_vim_broker_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ def self.supports_container?
true
end

def self.kill_priority
MiqWorkerType::KILL_PRIORITY_VIM_BROKER_WORKERS
end

def self.has_required_role?
return false if emses_to_monitor.empty?
super
Expand Down

0 comments on commit f2c4918

Please sign in to comment.