app/models/mixins/process_tasks_mixin.rb
# Performs tasks received from the UI via the queue
Performs tasks received from the UI via the queue
Performs tasks received from the UI via the queue
def invoke_tasks(options)
      local, remote = partition_ids_by_remote_region(options[:ids])
      invoke_tasks_local(options.merge(:ids => local)) unless local.empty?
      invoke_tasks_remote(options.merge(:ids => remote)) if remote.present? && respond_to?("invoke_tasks_remote")
    end
def invoke_tasks ( options ) local , remote = partition_ids_by_remote_region ( options [ :ids ] ) invoke_tasks_local ( options . merge ( :ids => local ) ) unless local . empty? invoke_tasks_remote ( options . merge ( :ids => remote ) ) if remote . present? && respond_to? ( "invoke_tasks_remote" ) end
Performs tasks received from the UI via the queue
Performs tasks received from the UI via the queue
# TODO: invoke_tasks_remote currently is only implemented by VmOrTemplate. # it can be refactored to be generalized like invoke_tasks_local
options
<not_specific>