Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add worker kill priority to workers only used by the vmware provider #482

Merged
merged 1 commit into from
Nov 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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