Skip to content

Conversation

@bauer-andreas
Copy link
Contributor

@bauer-andreas bauer-andreas commented Oct 28, 2025

Motivation

Currently, we offer heartbeatDetails(as:) method to retrieve the activity details of an activity execution. If it's the first attempt, this method fails with an ArgumentError Mismatched number of values and payloads as there are no heartbeat details available. The user has no way to differentiate between no heartbeat details being available or that they did indeed supple the wrong amount of payload types.

Modifications

We have heartbeatDetails(as:) return an optional tuple instead, so users can check if there are heartbeat details available from previous activity attempts.

Test Plan

Augmented existing unit tests to check activity details to be present or not.

@bauer-andreas bauer-andreas added the 🆕 semver/minor Adds new public API. label Oct 28, 2025
@FranzBusch
Copy link
Member

How is this handled by the C# and Ruby SDK? I wasn't able to find a similar method like this in the C# SDK.

@bauer-andreas
Copy link
Contributor Author

How is this handled by the C# and Ruby SDK? I wasn't able to find a similar method like this in the C# SDK.

C# SDK exposes the array of heartbeat details here so you can check yourself.

@bauer-andreas bauer-andreas force-pushed the andreas-bauer/has-heartbeat-details branch from 90229cc to 8965ad7 Compare October 30, 2025 09:14
@bauer-andreas bauer-andreas force-pushed the andreas-bauer/has-heartbeat-details branch from 8965ad7 to a114a7f Compare October 30, 2025 09:48
@bauer-andreas bauer-andreas added ⚠️ semver/major Breaks existing public API. and removed 🆕 semver/minor Adds new public API. labels Oct 30, 2025
@bauer-andreas bauer-andreas force-pushed the andreas-bauer/has-heartbeat-details branch 2 times, most recently from bbb7122 to a32eab0 Compare October 30, 2025 09:54
@bauer-andreas bauer-andreas force-pushed the andreas-bauer/has-heartbeat-details branch from a32eab0 to 722abc3 Compare October 30, 2025 09:55
@FranzBusch FranzBusch added 🆕 semver/minor Adds new public API. and removed ⚠️ semver/major Breaks existing public API. labels Oct 30, 2025
@bauer-andreas bauer-andreas merged commit c45609a into apple:main Oct 30, 2025
55 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants