Class: Temporalio::Activity::Info
- Inherits:
-
Object
- Object
- Temporalio::Activity::Info
- Defined in:
- lib/temporalio/activity/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 an activity.
Instance Attribute Summary collapse
-
#activity_id ⇒ String
ID for the activity.
-
#activity_type ⇒ String
Type name for the activity.
-
#attempt ⇒ Integer
Attempt the activity is on.
-
#current_attempt_scheduled_time ⇒ Time
When the current attempt was scheduled.
-
#heartbeat_timeout ⇒ Float?
Heartbeat timeout set by the caller.
-
#local? ⇒ Boolean
Whether the activity is a local activity or not.
-
#priority ⇒ Priority
The priority of this activity.
-
#raw_heartbeat_details ⇒ Array<Converter::RawValue>
Raw details from the last heartbeat of the last attempt.
-
#retry_policy ⇒ RetryPolicy?
Retry policy for the activity.
-
#schedule_to_close_timeout ⇒ Float?
Schedule to close timeout set by the caller.
-
#scheduled_time ⇒ Time
When the activity was scheduled.
-
#start_to_close_timeout ⇒ Float?
Start to close timeout set by the caller.
-
#started_time ⇒ Time
When the activity started.
-
#task_queue ⇒ String
Task queue this activity is on.
-
#task_token ⇒ String
Task token uniquely identifying this activity.
-
#workflow_id ⇒ String
Workflow ID that started this activity.
-
#workflow_namespace ⇒ String
Namespace this activity is on.
-
#workflow_run_id ⇒ String
Workflow run ID that started this activity.
-
#workflow_type ⇒ String
Workflow type name that started this activity.
Instance Method Summary collapse
-
#heartbeat_details(hints: nil) ⇒ Array<Object>
Convert raw heartbeat details into Ruby types.
Instance Attribute Details
#activity_id ⇒ String
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#activity_type ⇒ String
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#attempt ⇒ Integer
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#current_attempt_scheduled_time ⇒ Time
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#heartbeat_timeout ⇒ Float?
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#local? ⇒ Boolean
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#priority ⇒ Priority
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#raw_heartbeat_details ⇒ Array<Converter::RawValue>
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#retry_policy ⇒ RetryPolicy?
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#schedule_to_close_timeout ⇒ Float?
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#scheduled_time ⇒ Time
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#start_to_close_timeout ⇒ Float?
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#started_time ⇒ Time
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#task_queue ⇒ String
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#task_token ⇒ String
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#workflow_id ⇒ String
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#workflow_namespace ⇒ String
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#workflow_run_id ⇒ String
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
#workflow_type ⇒ String
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/temporalio/activity/info.rb', line 77 class Info # Convert raw heartbeat details into Ruby types. # # Note, this live-converts every invocation. # # @param hints [Array<Object>, nil] Hints, if any, to assist conversion. # @return [Array<Object>] Converted details. def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end end |
Instance Method Details
#heartbeat_details(hints: nil) ⇒ Array<Object>
Convert raw heartbeat details into Ruby types.
Note, this live-converts every invocation.
84 85 86 87 88 89 90 |
# File 'lib/temporalio/activity/info.rb', line 84 def heartbeat_details(hints: nil) Internal::ProtoUtils.convert_from_payload_array( Context.current.payload_converter, raw_heartbeat_details.map(&:payload), hints: ) end |