Class: Temporalio::Activity::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/activity/info.rb

Overview

Note:

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

Instance Method Summary collapse

Instance Attribute Details

#activity_idString



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_typeString



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

#attemptInteger



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_timeTime



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_timeoutFloat?



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

#priorityPriority



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_detailsArray<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_policyRetryPolicy?



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_timeoutFloat?



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_timeTime



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_timeoutFloat?



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_timeTime



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_queueString



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_tokenString



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_idString



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_namespaceString



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_idString



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_typeString



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