mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? <!-- Describe what has changed in this PR --> UserDataManger in child partitions constantly fetches data from the parent partition. There is a safely mechanism to prevent busy loop in case the parent returns result immediately instead of only when the data is updated. The safety mechanism did not work well with Versioning 3 because many updates are involved in a single tests. With this update we relax the safety check to only apply when the user data version remains the same and continue to fetch the data asap as long as each time it gets new data. Here, also I'm relaxing the "requested task queue user data for version greater than known version" errors to be thrown only for the root partition, as they can normally happen for child partitions. ## Why? <!-- Tell your future self why have you made these changes --> So that back-to-back Versioning 3 APIs do not have to wait for a long time. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Existing tests. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> ## Documentation <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) --> Yes.
Use development-*.yaml file to override the default dynamic config value (they are specified
when creating the service config).
Each key can have zero or more values and each value can have zero or more constraints. There are only three types of constraint:
namespace: stringtaskQueueName: stringtaskType: int(1:Workflow, 2:Activity)
A value will be selected and returned if all its has exactly the same constraints as the ones specified in query filters (including the number of constraints).
Please use the following format:
testGetBoolPropertyKey:
- value: false
- value: true
constraints:
namespace: "global-samples-namespace"
- value: false
constraints:
namespace: "samples-namespace"
testGetDurationPropertyKey:
- value: "1m"
constraints:
namespace: "samples-namespace"
taskQueueName: "longIdleTimeTaskqueue"
testGetFloat64PropertyKey:
- value: 12.0
constraints:
namespace: "samples-namespace"
testGetMapPropertyKey:
- value:
key1: 1
key2: "value 2"
key3:
- false
- key4: true
key5: 2.0