Skip to content

Conversation

stephanos
Copy link
Contributor

@stephanos stephanos commented Jul 21, 2025

READ BEFORE MERGING: All PRs require approval by both Server AND SDK teams before merging! This is why the number of required approvals is "2" and not "1"--two reviewers from the same team is NOT sufficient. If your PR is not approved by someone in BOTH teams, it may be summarily reverted.

What changed?

Already discussed and approved previously here.

Breaking changes

N/A

Server PR

https://github.com/temporalio/temporal/tree/feature/fairness

@stephanos stephanos changed the title Fairness keys Fairness Jul 21, 2025
@stephanos stephanos marked this pull request as ready for review July 21, 2025 16:58
@stephanos stephanos requested review from a team as code owners July 21, 2025 16:58
// amount of time (minutes). It may change, but it may take some time for
// the change to be reflected.
//
// The recommended range of usable weights is [0.001, 1000].
Copy link
Member

@Sushisource Sushisource Jul 21, 2025

Choose a reason for hiding this comment

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

Why this recommendation? Might be good to elaborate.

Copy link
Contributor Author

@stephanos stephanos Jul 21, 2025

Choose a reason for hiding this comment

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

Let me see ... so the code won't allow anything smaller than 0.001 or larger than 1000.

So they are allowed to pass in something smaller or larger; it just won't have an effect. I don't know if we have plans to change that range in the future and don't want to hard-code that as a hard-requirement.

Copy link
Member

@Sushisource Sushisource Jul 21, 2025

Choose a reason for hiding this comment

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

I'd be fine with saying values are currently clamped to that range (more than fine - it seems key that that will happen vs. just "recommended")

@stephanos stephanos requested a review from dnr July 21, 2025 18:13
stephanos and others added 4 commits July 21, 2025 13:02
Co-authored-by: David Reiss <david@temporal.io>
Co-authored-by: David Reiss <david@temporal.io>
@stephanos stephanos requested a review from Sushisource July 21, 2025 21:11
@dnr dnr merged commit 76b8fcb into master Jul 22, 2025
5 of 6 checks passed
@dnr dnr deleted the fairness branch July 22, 2025 15:24
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