Introduce CountSchedules operation#696
Merged
lina-temporal merged 2 commits intomasterfrom Jan 28, 2026
Merged
Conversation
This was referenced Jan 15, 2026
cretz
approved these changes
Jan 16, 2026
chaptersix
approved these changes
Jan 27, 2026
Contributor
Author
|
Server PR stamped and tested locally. Merging this, then will merge the server impl. |
lina-temporal
added a commit
to temporalio/temporal
that referenced
this pull request
Jan 29, 2026
## What changed? - Implements the new `CountSchedules` API for both CHASM and V1 scheduler. - Depends on [saas-policy change](temporalio/saas-policy#251), [API change](temporalio/api#696) ## Why? - Our UI was previously using an undocumented `ListWorkflowExecutions` call to get a total count of schedules. This will allow us to move it to a public API in advance of CHASM release, which will continue to work for both V1 and V2. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [x] added new functional test(s) ## Potential risks - New API is highly symmetric in design to all other Count* APIs, and implementation is highly symmetric to ListSchedules. Seems low.
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?
Why?
ListWorkflowExecutionsto display the total count of schedules. This operation will not return data for CHASM-based schedules. Therefore, I'm introducing a public CountSchedules operation that the UI (and customers) can make use of.Breaking changes
ListWorkflowExecutionsto query schedules was always unsupported, so we aren't interested in supporting it for CHASM schedules.CountScheduleswill be implemented for both V1 and V2 schedules.Server: