Skip to content

Introduce local timeout for activity heartbeats#2804

Open
Sushisource wants to merge 1 commit intotemporalio:masterfrom
Sushisource:activity-heartbeat-timeout-local
Open

Introduce local timeout for activity heartbeats#2804
Sushisource wants to merge 1 commit intotemporalio:masterfrom
Sushisource:activity-heartbeat-timeout-local

Conversation

@Sushisource
Copy link
Member

What was changed

See title

Why?

User request, matches Core behavior (though only for heartbeat timeouts, not overall activity timeouts)

Checklist

  1. Closes Keep track of current heartbeat timeout while retrying failures in doHeartBeatLocked #2775

  2. How was this tested:
    Added test

  3. Any docs updates needed?

@Sushisource Sushisource requested a review from a team as a code owner March 12, 2026 00:05
private static final long DEFAULT_LOCAL_HEARTBEAT_TIMEOUT_BUFFER_MILLIS = 5000;

static long getLocalHeartbeatTimeoutBufferMillis() {
String envVal = System.getenv("TEMPORAL_ACTIVITY_TIMEOUT_DELAY");
Copy link
Member Author

Choose a reason for hiding this comment

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

I did this b/c I didn't want a worker option for a setting I expect basically no one will ever care about adjusting. If we feel otherwise, can promote.

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.

Keep track of current heartbeat timeout while retrying failures in doHeartBeatLocked

1 participant