Repository navigation
Conversation
Walk through where Heartbeats get delayed when Activities time out while still working: confirming the timeout, ruling out a crashed Worker, rejections by rate and persistence limits, Workflow lock contention, slow writes, and late Worker sends. Give metric queries for each check, how to lengthen the timeout on pending Activities, how to reduce Heartbeat load, and what to alert on. Link to it from the encyclopedia, request failures, and Cloud service health pages.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview links
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds
docs/troubleshooting/activity-heartbeat-timeouts.mdx. The page is for readers whose Activities time out on their Heartbeat Timeout even though the Worker is running and the code calls Heartbeat. It covers each place a Heartbeat can be delayed:activity_task_timeout{timeout_type="Heartbeat"}(server v1.29+) or the Cloud OpenMetrics equivalent. Final-attempt metrics can stay at zero under the default Retry Policy.service_errors_resource_exhaustedby service and cause. A table mapsRpsLimit,BusyWorkflow, andPersistenceLimitto the limit involved and what to do.cache_latencyandtask_errors_throttled. SlowUpdateWorkflowExecutionwrites point at the database.temporal activity update-options. Don't shorten it on a running Activity.NOT_FOUNDalert.Also:
NOT_FOUND on Activity heartbeatsection of request failures, and theRecordActivityTaskHeartbeatrow of Cloud service health.Notes to reviewers
main.heartbeat_timeoutis emitted only when retries end, whileactivity_task_timeoutis emitted on every attempt.frontend.namespaceRPS,history.rps, andhistory.namespaceRPSkeys.yarn buildpasses locally.