mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed? Cache the result of `GetTaskQueueUserData` that history makes to Matching when an activity wants to start a deployment version transition. ## Why? This protects the matching root partition from being hammered by requests when a lot of AutoUpgrade workflows want to start activity-initiated transitions. Activity initiated transitions happen in one of the following cases: 1) Target version changed while activity was backlogged. 2) Target version changed while activity was in retry backoff 3) Target version changed in some edge cases involving parallel activities ## How did you test it? - [ ] built - [ ] run locally and tested manually - [ ] covered by existing tests - [x] added new unit test(s) - [ ] added new functional test(s) ## Potential risks The cache can potentially increase history mem usage but there are knobs to adjust size and ttl.