Commit bdbb7f6
authored
Small fixes for throughput stress with python worker (#233)
## What was changed
Two small fixes to allow `throughput_stress` to run on the Python
worker:
- Provide a default `BackoffCoefficient` for the `DefaultLocalActivity`
action. The Go SDK provides default values for local activity retry
policy fields (if missing), this is not the case in other SDKs. As such,
we provide a default backoff coefficient when we create the action
- Pass search attributes through to child workflows on the python
worker. Child workflows on the python worker were not including the
throughput stress search attribute, causing the visibility count check
to fail (and consequently, the scenario).
## Why?
We want the python worker to be able to run the throughput stress
scenario successfully
2. How was this tested:
Previously:
```
go run ./cmd run-scenario-with-worker \
--scenario throughput_stress \
--language python \
--iterations 10 \
--option internal-iterations=10
```
failed. With these fixes it succeeds.1 parent a87934a commit bdbb7f6
4 files changed
Lines changed: 21 additions & 5 deletions
File tree
- cmd/dev
- loadgen/kitchensink
- scenarios
- workers/python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
| |||
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
0 commit comments