Class: ForemanDlm::RefreshDlmlockStatus

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/foreman_dlm/refresh_dlmlock_status.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



15
16
17
# File 'app/jobs/foreman_dlm/refresh_dlmlock_status.rb', line 15

def humanized_name
  _('Refresh Distributed Lock status')
end

#perform(host_ids) ⇒ Object



7
8
9
# File 'app/jobs/foreman_dlm/refresh_dlmlock_status.rb', line 7

def perform(host_ids)
  Host::Managed.where(id: host_ids).each(&:refresh_dlmlock_status)
end