Class: Smith::Workflow::OrchestratorWorker::WorkerExecution

Inherits:
Struct
  • Object
show all
Defined in:
lib/smith/workflow/orchestrator_worker.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#execution_idObject

Returns the value of attribute execution_id

Returns:

  • (Object)

    the current value of execution_id



17
18
19
# File 'lib/smith/workflow/orchestrator_worker.rb', line 17

def execution_id
  @execution_id
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



17
18
19
# File 'lib/smith/workflow/orchestrator_worker.rb', line 17

def output
  @output
end

#taskObject

Returns the value of attribute task

Returns:

  • (Object)

    the current value of task



17
18
19
# File 'lib/smith/workflow/orchestrator_worker.rb', line 17

def task
  @task
end

Class Method Details

.run(worker_class, task, schema, budget_runner) ⇒ Object



18
19
20
# File 'lib/smith/workflow/orchestrator_worker.rb', line 18

def self.run(worker_class, task, schema, budget_runner)
  new(SecureRandom.uuid, task, budget_runner.call(worker_class, task, schema))
end