Class: SolidFlow::Task::TaskContext

Inherits:
Object
  • Object
show all
Defined in:
lib/solid_flow/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution_id:, step_name:, attempt:, idempotency_key:, workflow_name:, metadata:) ⇒ TaskContext

Returns a new instance of TaskContext.



118
119
120
121
122
123
124
125
# File 'lib/solid_flow/task.rb', line 118

def initialize(execution_id:, step_name:, attempt:, idempotency_key:, workflow_name:, metadata:)
  @execution_id = execution_id
  @step_name = step_name
  @attempt = attempt
  @idempotency_key = idempotency_key
  @workflow_name = workflow_name
  @metadata = 
end

Instance Attribute Details

#attemptObject (readonly)

Returns the value of attribute attempt.



116
117
118
# File 'lib/solid_flow/task.rb', line 116

def attempt
  @attempt
end

#execution_idObject (readonly)

Returns the value of attribute execution_id.



116
117
118
# File 'lib/solid_flow/task.rb', line 116

def execution_id
  @execution_id
end

#idempotency_keyObject (readonly)

Returns the value of attribute idempotency_key.



116
117
118
# File 'lib/solid_flow/task.rb', line 116

def idempotency_key
  @idempotency_key
end

#metadataObject (readonly)

Returns the value of attribute metadata.



116
117
118
# File 'lib/solid_flow/task.rb', line 116

def 
  @metadata
end

#step_nameObject (readonly)

Returns the value of attribute step_name.



116
117
118
# File 'lib/solid_flow/task.rb', line 116

def step_name
  @step_name
end

#workflow_nameObject (readonly)

Returns the value of attribute workflow_name.



116
117
118
# File 'lib/solid_flow/task.rb', line 116

def workflow_name
  @workflow_name
end