Files
temporal/api
Kannan 005d1849c6 Implement new task queue kind to send worker commands (#9899)
## What

Add support for `TASK_QUEUE_KIND_WORKER_COMMANDS` in the matching
service. This is a new task queue kind for server-to-worker
communication (e.g. activity cancellations). It is represented by a new
`WorkerCommandsPartition` type in the `tqid` package — analogous to how
`StickyPartition` represents sticky queues.

Also adds a distinct `partition` metric tag for worker-commands queues
so their traffic can be distinguished from user-facing normal queues in
metrics.

Depends on [#9900](https://github.com/temporalio/temporal/pull/9900).

## Why

Worker_Commands queue kind has different properties compared to a normal
user defined queue. So we created a separate kind. This allows us to
distinguish task queue metrics based on whether they are internal or
user created queue.

## How did you test it?

Unit tests covering metric tag generation for normal, sticky, and
worker-commands partitions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: David Reiss <david@temporal.io>
2026-04-20 18:57:03 +00:00
..
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00
2026-03-30 15:30:50 -07:00