Commit 8c1d824
authored
Do not add start WFT before processing commands (#7829)
## What changed?
In an edge case in versioning we wanted to make sure that a new wft is
generated after processing the previous wft completed event. The new wft
was added in `afterAddWorkflowTaskCompletedEvent` which is run before
processing commands.
Now moved it to the api handler which is anyways taking care of similar
cases to create new wft task after completion of the previous one.
## Why?
The old logic could cause issues because it adds the new wft before the
events generated from commands.
## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)
## Potential risks
None1 parent 72cd2fd commit 8c1d824
File tree
2 files changed
+4
-11
lines changed- service/history
- api/respondworkflowtaskcompleted
- workflow
2 files changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
485 | 488 | | |
486 | 489 | | |
487 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | 1139 | | |
1150 | 1140 | | |
1151 | 1141 | | |
| |||
0 commit comments