Class: Smith::Workflow::WorkerExecution
- Inherits:
-
Struct
- Object
- Struct
- Smith::Workflow::WorkerExecution
- Defined in:
- lib/smith/workflow/worker_execution.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
7 8 9 |
# File 'lib/smith/workflow/worker_execution.rb', line 7 def execution_id @execution_id end |
#output ⇒ Object
Returns the value of attribute output
7 8 9 |
# File 'lib/smith/workflow/worker_execution.rb', line 7 def output @output end |
#task ⇒ Object
Returns the value of attribute task
7 8 9 |
# File 'lib/smith/workflow/worker_execution.rb', line 7 def task @task end |
Class Method Details
.run(worker_class, task, schema, budget_runner) ⇒ Object
8 9 10 |
# File 'lib/smith/workflow/worker_execution.rb', line 8 def self.run(worker_class, task, schema, budget_runner) new(SecureRandom.uuid, task, budget_runner.call(worker_class, task, schema)) end |