Class: AdjustNodeSlotsJob

Inherits:
ContainerBrokerBaseJob show all
Defined in:
app/jobs/adjust_node_slots_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

#perform(node:) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'app/jobs/adjust_node_slots_job.rb', line 6

def perform(node:)
  lock_manager_instance(node).lock do
    node.reload
    all_execution_types(node).each do |execution_type|
      AdjustExecutionTypeSlots.new(
        node: node,
        execution_type: execution_type
      ).perform
    end
  end
end