Commit 8436aed
authored
Allow config.ReplicationLowPriorityTaskParallelism to take effect. (#10051)
## What changed?
Use `WorkflowKey` for the low and high priority replication scheduler's queue ID
rather than a string. Deterministically map RunID to a slot number for low priority using
`config.ReplicationLowPriorityTaskParallelism` slots.
## Why?
Using strings for the queue ID was preventing concurrent tx map from
optimising queue operations.
While we had code to allow parallelising tasks for different executions
of the same workflow ID, the code was not reachable. Switch the
parallelisation to the queue ID level which is subjectively more
intuitive.
## Potential risks
The `config.ReplicationLowPriorityTaskParallelism` could be set to a
non-default number on clusters but would not currently be taking effect.
After this change the parallelism would kick in, which may cause
surprising behaviour.1 parent 4a15166 commit 8436aed
1 file changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| |||
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
208 | | - | |
| 211 | + | |
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
| |||
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
306 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
307 | 312 | | |
308 | 313 | | |
309 | 314 | | |
| |||
0 commit comments