Repository navigation
Fix worker heartbeat counts with MetricBuffer - #1952
Merged
Merged
Conversation
tconley1428
approved these changes
Oct 9, 2026
Sushisource
enabled auto-merge (squash)
October 9, 2026 20:54
Sushisource
disabled auto-merge
October 9, 2026 21:17
Sushisource
enabled auto-merge (squash)
October 9, 2026 21:21
patbeqo
added a commit
to temporalio/skill-temporal-observability
that referenced
this pull request
Nov 15, 2026
#15) Adds a trimmed heartbeat content and opt-out section (environment info opt-out, start after polling, MetricBuffer counts, poller target, plugin version). Operators reading worker fleet health see new heartbeat fields and a privacy opt-out. Upstream: - temporalio/sdk-dotnet#826 - temporalio/sdk-rust#1457 - temporalio/sdk-rust#1488 - temporalio/sdk-rust#1593 - temporalio/sdk-rust#1688 - temporalio/sdk-go#2511 - temporalio/sdk-go#2647 - temporalio/sdk-java#3052 - temporalio/sdk-rust#1393 - temporalio/sdk-python#1747 - https://github.com/temporalio/sdk-python/releases/tag/1.32.0 - temporalio/sdk-python#1952 - temporalio/sdk-python#2064 - https://github.com/temporalio/sdk-python/releases/tag/1.36.0 - https://github.com/temporalio/sdk-ruby/releases/tag/v1.6.0 - temporalio/sdk-ruby#537 - https://github.com/temporalio/sdk-ruby/releases/tag/v1.10.0 - https://github.com/temporalio/sdk-ruby/releases/tag/v1.11.0 - https://github.com/temporalio/sdk-rust/releases/tag/core-v0.11.0 - https://github.com/temporalio/sdk-rust/releases/tag/v1.2.0 - https://github.com/temporalio/sdk-typescript/releases/tag/v1.21.0 Eval: Knowledge task, GPT 6.1 Terra (Codex) Baseline: 5/5 items, 818k tokens, 68s Improved: 5/5 items, 634k tokens, 54s Delta: +0 items, -22% tokens, -19% time Eval task: temporalio/skill-evals#428 --------- Co-authored-by: temporal-plugin-updater[bot] <3389934+temporal-plugin-updater[bot]@users.noreply.github.com> Co-authored-by: Patrik Beqo <[email protected]> Co-authored-by: temporal-plugin-updater[bot] <276371939+temporal-plugin-updater[bot]@users.noreply.github.com>
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 was changed
01d7c918to472f94ee, including the fix in Fix labelled heartbeat metrics reporting 0 with a buffered meter sdk-rust#1593.MetricBuffer, then verifies nonzero task-slot and poller counts in the heartbeat returned byListWorkers, without draining the metric buffer.Why?
Workers using
MetricBufferreported zero task-slot and poller counts in worker heartbeats even while processing work. The updated Core selects heartbeat counts independently of deferred, backend-owned metric attributes.Checklist
Closes [Bug] Heartbeat Task Slot information is not pulled when MetricBuffer is configured #1817.
How was this tested:
poe build-developpoe test -s -n 0 tests/worker/test_workflow.py -k metrics— all four metric tests passed against an ephemeral Temporal server.poe lint— formatting, import, type, and documentation checks passed.poe bridge-lint— passed.01d7c918), reporting zero workflow available slots despite completed workflow/activity tasks; it passes with the updated pin (472f94ee). Restored the updated pin and rebuilt the bridge afterward.git diff --check— passed.Any docs updates needed?