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.