Add WorkerListInfo proto for efficient worker listing#724
Draft
Add WorkerListInfo proto for efficient worker listing#724
Conversation
2 tasks
9e0ccf0 to
a12853c
Compare
bergundy
reviewed
Feb 27, 2026
## What changed? - Add `WorkerSummary` proto containing static/slow-changing worker fields - Update `WorkerInfo` to embed `WorkerSummary` and add dynamic fields separately - Deprecate `worker_heartbeat` field in `WorkerInfo` - Add `workers` field to `ListWorkersResponse` using `WorkerSummary` - Deprecate `workers_info` field in `ListWorkersResponse` ## Why? The current `ListWorkersResponse` returns full `WorkerInfo` which includes expensive dynamic metrics (CPU, memory, slot usage) that change frequently. For listing many workers, we only need static/slow-changing information. This change separates worker information into: - `WorkerSummary`: static fields for efficient listing - `WorkerInfo`: full details including dynamic metrics for DescribeWorker Made-with: Cursor
a12853c to
749ca5b
Compare
…ity conventions Follow the established naming pattern used by other CHASM entities: - ActivityExecutionListInfo (for ListActivityExecutions) - ScheduleListEntry (for ListSchedules) - BatchOperationInfo (for ListBatchOperations) This ensures WorkerListInfo follows the same "ListInfo/ListEntry" suffix convention for types returned in List API responses. Made-with: Cursor
bergundy
approved these changes
Feb 27, 2026
| string sdk_version = 6; | ||
|
|
||
| // Worker status. Defined by SDK. | ||
| temporal.api.enums.v1.WorkerStatus status = 7; |
Member
There was a problem hiding this comment.
Are all statuses going to be supported? I thought we said that we will only show shutting down or shut down?
Contributor
Author
There was a problem hiding this comment.
Right now there are only 3 status and we should be showing all right?
WORKER_STATUS_RUNNING = 1;
WORKER_STATUS_SHUTTING_DOWN = 2;
WORKER_STATUS_SHUTDOWN = 3;
Contributor
There was a problem hiding this comment.
SDK only sends RUNNING and SHUTTING_DOWN, I know we said pre-chasm when the worker entry is evicted, the entry just disappears, but will chasm show SHUTDOWN?
yuandrew
reviewed
Feb 27, 2026
Contributor
yuandrew
left a comment
There was a problem hiding this comment.
Changes LGTM, will we have a server side PR to pick these up? I'm good to approve once we're close to being ready to merge this in
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 changed?
WorkerListInfoproto for List API (follows CHASM entity conventions likeActivityExecutionListInfo,ScheduleListEntry)workersfield toListWorkersResponsereturningrepeated WorkerListInfoworkers_infofield inListWorkersResponseWhy?
Listing many workers with full
WorkerInfo(containing dynamic metrics) is expensive.WorkerListInfocontains only static/slow-changing fields for efficient listing.How did you test it?
Potential risks
None - backward compatible.