Skip to content

CLI Support for UpdateTaskQueueConfig's fairness weight overrides#987

Merged
majiru merged 9 commits intomainfrom
fandptq
Apr 24, 2026
Merged

CLI Support for UpdateTaskQueueConfig's fairness weight overrides#987
majiru merged 9 commits intomainfrom
fandptq

Conversation

@majiru
Copy link
Copy Markdown
Contributor

@majiru majiru commented Apr 20, 2026

What was changed

Add support for setting fairness key weight overrides.

Why?

We should expose this feature to users.

Checklist

  1. How was this tested:
    Newly added tests and tested against a local dev server

  2. Any docs updates needed?
    Yes; https://docs.temporal.io/cli/task-queue

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 20, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment thread internal/temporalcli/commands.yaml Outdated
Comment thread internal/temporalcli/commands.taskqueue_config.go Outdated
Comment thread internal/temporalcli/commands.taskqueue_config.go Outdated
Comment thread internal/temporalcli/commands.taskqueue_config.go Outdated
Comment thread internal/temporalcli/commands.taskqueue_config.go
@majiru majiru marked this pull request as ready for review April 21, 2026 18:23
@majiru majiru requested a review from a team as a code owner April 21, 2026 18:23
Comment thread internal/temporalcli/commands.yaml Outdated
Comment on lines +63 to +69
// minFairnessWeight matches server-side limit in temporal/service/matching/fairness_util.go
// Server clamps weights to this minimum when applying them
minFairnessWeight = 0.001

// maxFairnessWeight is the maximum weight value allowed
// Server clamps weights above this value down to this maximum
maxFairnessWeight = 1000.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not enforce these at all. clients do not need to know the effective range that the server is currently configured with, only that the the weight must be positive.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I've removed these enforcements. Do you feel the same way about the fairness key limit?

Comment thread internal/temporalcli/commands.taskqueue_config.go Outdated
Comment thread internal/temporalcli/commands.taskqueue_config.go Outdated
Comment thread internal/temporalcli/commands.taskqueue_config.go Outdated
Comment thread internal/temporalcli/commands.taskqueue_config.go Outdated
Comment thread internal/temporalcli/commands.taskqueue_config.go Outdated
Copy link
Copy Markdown
Contributor

@dnr dnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me!

@majiru majiru merged commit 69dfddf into main Apr 24, 2026
9 checks passed
@majiru majiru deleted the fandptq branch April 24, 2026 23:18
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.

4 participants