@@ -982,7 +982,7 @@ class Priority:
982982 2. Then consider "fairness_key" and "fairness_weight" for fairness balancing.
983983 """
984984
985- priority_key : Optional [int ]
985+ priority_key : Optional [int ] = None
986986 """Priority key is a positive integer from 1 to n, where smaller integers correspond to higher
987987 priorities (tasks run sooner). In general, tasks in a queue should be processed in close to
988988 priority order, although small deviations are possible.
@@ -997,22 +997,22 @@ class Priority:
997997 fairness_key : Optional [str ] = None
998998 """A short string (max 64 bytes) that is used as a key for a fairness balancing mechanism.
999999 This can correspond to a tenant id or even fixed strings like "high", "low", etc.
1000-
1000+
10011001 The fairness mechanism attempts to dispatch tasks for a given key in proportion to its weight.
1002- For example, using a thousand distinct tenant ids, each with a weight of 1.0 will result in
1002+ For example, using a thousand distinct tenant ids, each with a weight of 1.0 will result in
10031003 each tenant getting a roughly equal share of task dispatch throughput.
1004-
1004+
10051005 Default is an empty string.
10061006 """
10071007
10081008 fairness_weight : Optional [float ] = None
10091009 """A float that represents the weight for task dispatch for the associated fairness key.
10101010 Tasks for a fairness key are dispatched in proportion to their weight.
1011-
1011+
10121012 Server will clamp the values between 0.001 and 1000. Default weight is 1.0.
1013-
1013+
10141014 The effective weight of a task is determined by the following precedence (highest to lowest):
1015- 1. Weights overridden in task queue configuration
1015+ 1. Weights overridden in task queue configuration
10161016 2. Weights attached to workflow/activity
10171017 3. Default weight of 1.0
10181018 """
0 commit comments