Class: Temporalio::Workflow::Info
- Inherits:
-
Struct
- Object
- Struct
- Temporalio::Workflow::Info
- Defined in:
- lib/temporalio/workflow/info.rb,
lib/temporalio/workflow/info.rb
Overview
WARNING: This class may have required parameters added to its constructor. Users should not instantiate this class or it may break in incompatible ways.
Information about the running workflow. This is immutable for the life of the workflow run.
Defined Under Namespace
Classes: ParentInfo
Instance Attribute Summary collapse
-
#attempt ⇒ Integer
Current workflow attempt.
-
#continued_run_id ⇒ String?
Run ID if this was continued.
-
#cron_schedule ⇒ String?
Cron schedule if applicable.
-
#execution_timeout ⇒ Float?
Execution timeout for the workflow.
-
#last_failure ⇒ Exception?
Failure if this workflow run is a continuation of a failure.
-
#last_result ⇒ Object?
Successful result if this workflow is a continuation of a success.
-
#namespace ⇒ String
Namespace for the workflow.
-
#parent ⇒ ParentInfo?
Parent information for the workflow if this is a child.
-
#retry_policy ⇒ RetryPolicy?
Retry policy for the workflow.
-
#run_id ⇒ String
Run ID for the workflow.
-
#run_timeout ⇒ Float?
Run timeout for the workflow.
-
#start_time ⇒ Time
Time when the workflow started.
-
#task_queue ⇒ String
Task queue for the workflow.
-
#task_timeout ⇒ Float
Task timeout for the workflow.
-
#workflow_id ⇒ String
ID for the workflow.
-
#workflow_type ⇒ String
Workflow type name.
Instance Attribute Details
#attempt ⇒ Integer
Returns Current workflow attempt.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def attempt @attempt end |
#continued_run_id ⇒ String?
Returns Run ID if this was continued.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def continued_run_id @continued_run_id end |
#cron_schedule ⇒ String?
Returns Cron schedule if applicable.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def cron_schedule @cron_schedule end |
#execution_timeout ⇒ Float?
Returns Execution timeout for the workflow.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def execution_timeout @execution_timeout end |
#last_failure ⇒ Exception?
Returns Failure if this workflow run is a continuation of a failure.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def last_failure @last_failure end |
#last_result ⇒ Object?
Returns Successful result if this workflow is a continuation of a success.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def last_result @last_result end |
#namespace ⇒ String
Returns Namespace for the workflow.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def namespace @namespace end |
#parent ⇒ ParentInfo?
Returns Parent information for the workflow if this is a child.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def parent @parent end |
#retry_policy ⇒ RetryPolicy?
Returns Retry policy for the workflow.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def retry_policy @retry_policy end |
#run_id ⇒ String
Returns Run ID for the workflow.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def run_id @run_id end |
#run_timeout ⇒ Float?
Returns Run timeout for the workflow.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def run_timeout @run_timeout end |
#start_time ⇒ Time
Returns Time when the workflow started.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def start_time @start_time end |
#task_queue ⇒ String
Returns Task queue for the workflow.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def task_queue @task_queue end |
#task_timeout ⇒ Float
Returns Task timeout for the workflow.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def task_timeout @task_timeout end |
#workflow_id ⇒ String
Returns ID for the workflow.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def workflow_id @workflow_id end |
#workflow_type ⇒ String
Returns Workflow type name.
62 63 64 |
# File 'lib/temporalio/workflow/info.rb', line 62 def workflow_type @workflow_type end |