Skip to content

Fix worker heartbeat counts with MetricBuffer - #1952

Merged
Sushisource merged 2 commits into
mainfrom
fix/metric-buffer-worker-heartbeats
Oct 9, 2026
Merged

Sushisource merged 2 commits into
mainfrom
fix/metric-buffer-worker-heartbeats

Conversation

@Sushisource

Copy link
Copy Markdown
Member

What was changed

  • Update Core from 01d7c918 to 472f94ee, including the fix in Fix labelled heartbeat metrics reporting 0 with a buffered meter sdk-rust#1593.
  • Import the Core fix into the pending release notes.
  • Add a Python end-to-end regression test that executes a workflow and activity with MetricBuffer, then verifies nonzero task-slot and poller counts in the heartbeat returned by ListWorkers, without draining the metric buffer.
  • Enable worker heartbeat and worker listing features in the local test server fixture.

Why?

Workers using MetricBuffer reported 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

  1. Closes [Bug] Heartbeat Task Slot information is not pulled when MetricBuffer is configured #1817.

  2. How was this tested:

    • poe build-develop
    • poe 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.
    • Confirmed regression sensitivity: the new heartbeat test fails with the previous Core pin (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.
  3. Any docs updates needed?

    • No public API changes. The imported Core changelog fragment documents the fix.
    • Core protobuf definitions and bridge dependency versions are unchanged across this update; no generated bindings or manifest/lockfile changes are needed.

@Sushisource
Sushisource requested a review from a team as a code owner October 9, 2026 20:50
@Sushisource
Sushisource enabled auto-merge (squash) October 9, 2026 20:54
@Sushisource
Sushisource disabled auto-merge October 9, 2026 21:17
@Sushisource
Sushisource enabled auto-merge (squash) October 9, 2026 21:21
@Sushisource
Sushisource merged commit 3ca219b into main Oct 9, 2026
17 of 19 checks passed
@Sushisource
Sushisource deleted the fix/metric-buffer-worker-heartbeats branch October 9, 2026 21:40
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>
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.

[Bug] Heartbeat Task Slot information is not pulled when MetricBuffer is configured

2 participants