Class: Smith::Workflow::OrchestratorWorker::WorkerExecution
- Inherits:
-
Struct
- Object
- Struct
- Smith::Workflow::OrchestratorWorker::WorkerExecution
- Defined in:
- lib/smith/workflow/orchestrator_worker.rb
Instance Attribute Summary collapse
-
#execution_id ⇒ Object
Returns the value of attribute execution_id.
-
#output ⇒ Object
Returns the value of attribute output.
-
#task ⇒ Object
Returns the value of attribute task.
Class Method Summary collapse
Instance Attribute Details
#execution_id ⇒ Object
Returns the value of attribute execution_id
17 18 19 |
# File 'lib/smith/workflow/orchestrator_worker.rb', line 17 def execution_id @execution_id end |
#output ⇒ Object
Returns the value of attribute output
17 18 19 |
# File 'lib/smith/workflow/orchestrator_worker.rb', line 17 def output @output end |
#task ⇒ Object
Returns the value of attribute 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 |