Skip to content

Fix task-queue config set help: use real fairness weight flag names#1056

Merged
chaptersix merged 2 commits into
mainfrom
fix/taskqueue-config-set-help-flag-names
May 29, 2026
Merged

Fix task-queue config set help: use real fairness weight flag names#1056
chaptersix merged 2 commits into
mainfrom
fix/taskqueue-config-set-help-flag-names

Conversation

@jpvotta
Copy link
Copy Markdown
Contributor

@jpvotta jpvotta commented May 27, 2026

The temporal task-queue config set help text referenced three flags that don't exist:

  • --fairness-key-weight-set <key>=<weight>
  • --fairness-key-weight-unset <key>
  • --fairness-key-weight-unset-all

The real flags, defined a few lines below in the same YAML block, are:

  • --fairness-key-weight <key>=<weight> (with <key>=default to unset a single key)
  • --fairness-key-weight-clear-all

This PR updates the example block and the unset instructions in commands.yaml to match, and regenerates commands.gen.go. Verified locally with go run ./cmd/temporal task-queue config set --help.

This bug also surfaces in the auto-generated docs site at docs/cli/task-queue.mdx, which a customer hit in this Slack thread. The docs PR over in temporalio/documentation#4625 works around it by referencing the real flag names directly.

The help text for 'temporal task-queue config set' referenced
--fairness-key-weight-set, --fairness-key-weight-unset, and
--fairness-key-weight-unset-all - none of which exist. The real flags,
defined a few lines below in the same YAML, are --fairness-key-weight
(with key=default to unset a single key) and --fairness-key-weight-clear-all.

Updated the example block and the unset instructions in the description
to match the actual flag names, and regenerated commands.gen.go.
@jpvotta jpvotta requested a review from a team as a code owner May 27, 2026 22:06
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 27, 2026

CLA assistant check
All committers have signed the CLA.

@chaptersix chaptersix merged commit 2a4ea2a into main May 29, 2026
10 of 11 checks passed
@chaptersix chaptersix deleted the fix/taskqueue-config-set-help-flag-names branch May 29, 2026 16:16
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