Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max heartbeat interval #15

Merged
merged 1 commit into from
May 13, 2024
Merged

Add max heartbeat interval #15

merged 1 commit into from
May 13, 2024

Conversation

DanielCosme
Copy link
Contributor

@DanielCosme DanielCosme commented May 13, 2024

This PR aims to add a Max heartbeat interval to the auto heartbeat function. Some activities could have long heartbeat timeout periods, so we want to keep the intervals no longer than 10 seconds regardless of the timeout. I the amount of heartbeats was increased from 2 to 3 (per timeout period).

Copy link
Member

@sevein sevein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how you came up with these numbers, but they seem reasonable. LGTM!

@jraddaoui
Copy link
Member

@sevein, the numbers come from Temporal's internalSessionCreationActivity heartbeat implementation: https://github.com/temporalio/sdk-go/blob/master/internal/session.go#L408-L414

@DanielCosme DanielCosme merged commit 08474b9 into main May 13, 2024
4 checks passed
@DanielCosme DanielCosme deleted the change-heartbeat-interval branch May 13, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants