File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Sources/Temporal/Worker/Activities Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,15 @@ public struct ActivityExecutionContext: Sendable {
119119 /// The data converter used for payload serialization.
120120 private let dataConverter : DataConverter
121121
122+ /// Determine if the activity execution has heartbeat details from a previous activity attempt available.
123+ ///
124+ /// Heartbeat details are preserved across activity retries, allowing activities to resume execution
125+ /// from a known checkpoint. If the activity info carries heartbeat details from a previous activity attempt,
126+ /// this property will return true.
127+ public var hasHeartbeatDetails : Bool {
128+ !self . heartbeatDetails. isEmpty
129+ }
130+
122131 /// Creates a new activity information instance.
123132 ///
124133 /// - Parameters:
You can’t perform that action at this time.
0 commit comments