Commit 7489808
committed
Use stored WorkerControlTaskQueue for activity cancellation dispatch
Instead of looking up the control queue name from the worker registry,
use the WorkerControlTaskQueue that was persisted in ActivityInfo when
the activity started. This simplifies the dispatch logic and removes
the dependency on the worker registry lookup.
Changes:
- Get controlQueueName from first valid activity's WorkerControlTaskQueue
- Remove registry lookup and hardcoded queue name construction
- Update dispatchActivityCancelToWorker signature to accept queue name
- Update test to send WorkerControlTaskQueue in poll request1 parent 5b95af3 commit 7489808
File tree
2 files changed
+19
-20
lines changed- service/history
- tests
2 files changed
+19
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2007 | 2007 | | |
2008 | 2008 | | |
2009 | 2009 | | |
| 2010 | + | |
2010 | 2011 | | |
2011 | 2012 | | |
2012 | 2013 | | |
2013 | 2014 | | |
2014 | 2015 | | |
2015 | 2016 | | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
2016 | 2023 | | |
2017 | 2024 | | |
2018 | 2025 | | |
| |||
2030 | 2037 | | |
2031 | 2038 | | |
2032 | 2039 | | |
2033 | | - | |
| 2040 | + | |
2034 | 2041 | | |
2035 | 2042 | | |
2036 | 2043 | | |
2037 | | - | |
| 2044 | + | |
2038 | 2045 | | |
2039 | 2046 | | |
2040 | 2047 | | |
2041 | 2048 | | |
2042 | | - | |
| 2049 | + | |
| 2050 | + | |
2043 | 2051 | | |
2044 | 2052 | | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | 2053 | | |
2053 | 2054 | | |
2054 | 2055 | | |
| |||
2074 | 2075 | | |
2075 | 2076 | | |
2076 | 2077 | | |
2077 | | - | |
| 2078 | + | |
2078 | 2079 | | |
2079 | 2080 | | |
2080 | 2081 | | |
| |||
2083 | 2084 | | |
2084 | 2085 | | |
2085 | 2086 | | |
2086 | | - | |
2087 | | - | |
2088 | | - | |
| 2087 | + | |
2089 | 2088 | | |
2090 | 2089 | | |
2091 | 2090 | | |
2092 | 2091 | | |
2093 | 2092 | | |
2094 | 2093 | | |
2095 | | - | |
2096 | | - | |
| 2094 | + | |
2097 | 2095 | | |
2098 | 2096 | | |
2099 | 2097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
0 commit comments