Skip to content

Add temporal worker count CLI command - #1141

Merged
rkannan82 merged 3 commits into
mainfrom
kannan/count-workers-cli
Jul 29, 2026
Merged

Add temporal worker count CLI command#1141
rkannan82 merged 3 commits into
mainfrom
kannan/count-workers-cli

Conversation

@rkannan82

@rkannan82 rkannan82 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What

Adds temporal worker count command that calls the CountWorkers RPC. Supports --query and --include-system-workers flags.

Why

Need a way to get worker counts from the CLI for operational use and COGS analysis.

How did you test it?

  • Unit: TestWorkerCount — records a worker heartbeat, verifies count returns 1 (both text and JSON output)

🤖 Generated with Claude Code

Calls the CountWorkers RPC with optional --query and --include-system-workers flags.
Bumps go.temporal.io/api and go.temporal.io/server deps to pick up the new RPC.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rkannan82
rkannan82 requested a review from spkane31 July 28, 2026 23:29
@rkannan82
rkannan82 marked this pull request as ready for review July 28, 2026 23:30
@rkannan82
rkannan82 requested a review from a team as a code owner July 28, 2026 23:30
@rkannan82
rkannan82 requested review from fretz12 and removed request for spkane31 July 28, 2026 23:31
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rkannan82
rkannan82 added this pull request to the merge queue Jul 28, 2026
Merged via the queue into main with commit 8321f71 Jul 29, 2026
11 of 12 checks passed
@rkannan82
rkannan82 deleted the kannan/count-workers-cli branch July 29, 2026 00:03
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