acceptance/lib/pxp-agent/bolt_pxp_module_helper.rb
# Makes a non-blocking request to start a task.
# Block is executed on the "response_dataset" object from do_module_action.
Makes a non-blocking request to start a task.
Block is executed on the "response_dataset" object from do_module_action.
Makes a non - blocking request to start a task . Block is executed on the " response_dataset " object from do_module_action .
def run_task(broker, targets, task, files, input: {}, metadata: nil, **kwargs, &block)
  params = { task: task, input: input, files: files }
  params[:metadata] = metadata if metadata
  do_module_action(broker, agent_identities(targets), 'task', 'run', params, **kwargs, &block)
end
def run_task ( broker , targets , task , files , input : { } , metadata : nil , ** kwargs , & block ) params = { task : task , input : input , files : files } params [ :metadata ] = metadata if metadata do_module_action ( broker , agent_identities ( targets ) , 'task' , 'run' , params , ** kwargs , & block ) end
Makes a non-blocking request to start a task.
Makes a non - blocking request to start a task .
broker
<not_specific>
targets
<not_specific>
task
<not_specific>
files
<not_specific>
input
<not_specific>
metadata
<not_specific>
kwargs
<not_specific>
block
<not_specific>