Repository navigation
Add task queue fairness configuration for namespaces - #72
Merged
Merged
Conversation
khisakuni
approved these changes
Jun 2, 2026
anekkanti
reviewed
Jun 3, 2026
| the current version is fetched automatically. | ||
|
|
||
| # Namespace fairness commands | ||
| - name: cloud namespace fairness |
Member
There was a problem hiding this comment.
Whats the state of this feature? If its not GA yet, can we add a Experimental label to the commands, similar to the custom roles feature?
anekkanti
approved these changes
Jun 3, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 31e984e. Configure here.
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 was changed
--enable-task-queue-fairnessflag totemporal cloud namespace create.temporal cloud namespace fairness getto read a namespace's current fairness setting.temporal cloud namespace fairness set --enable-task-queue-fairness=<bool>to toggle it on an existing namespace (with--async,--async-operation-id,--resource-version,--idempotentsupport).NamespaceSpec.Fairnessand added unit tests for create + both new commands.Why?
Users previously had no targeted way to enable or disable task queue fairness — they could only do so by hand-editing the full namespace spec via
namespace edit/apply. This adds first-class create-time and update-time controls, following the existingnamespace lifecyclepattern for single-field sub-spec management.Checklist
Closes
How was this tested:
Note
Low Risk
Scoped namespace configuration using the existing get/apply/update flow with prompts and tests; no auth or data-path changes.
Overview
Adds task queue fairness controls for Temporal Cloud namespaces so users can set or read
TaskQueueFairnessEnabledwithout editing the full namespace spec.temporal cloud namespace creategains--enable-task-queue-fairness. The flag is tri-state: if omitted,NamespaceSpec.Fairnessis left unset so the server default applies; if provided, create wiresFairnessSpecaccordingly.New
temporal cloud namespace fairnesscommands follow the existing lifecycle-style pattern:getprints the current enabled state (treating missing fairness as false), andset --enable-task-queue-fairnessfetches the namespace, applies a spec diff with confirmation, andUpdateNamespacewith async polling and optional resource-version / async-operation overrides.Command definitions in
commands.ymldrive generated CLI wiring; unit tests cover create fairness mapping and get/set behavior.Reviewed by Cursor Bugbot for commit d6d4c22. Bugbot is set up for automated code reviews on this repo. Configure here.