Class: MonitorUnresponsiveNodesJob

Inherits:
ContainerBrokerBaseJob show all
Defined in:
app/jobs/monitor_unresponsive_nodes_job.rb

Constant Summary

Constants inherited from ContainerBrokerBaseJob

ContainerBrokerBaseJob::JOB_METRIC

Instance Method Summary collapse

Methods inherited from ContainerBrokerBaseJob

request_id_from_args

Instance Method Details

#performObject



4
5
6
7
8
# File 'app/jobs/monitor_unresponsive_nodes_job.rb', line 4

def perform
  Node.where(:status.in => %w[unstable unavailable]).each do |node|
    MonitorUnresponsiveNodeJob.perform_later(node: node)
  end
end