temporalio / features

Behavior and history compatibility testing for Temporal SDKs
14 stars 17 forks source link

allow reset API to bring new signals as atomic operation #553

Open longquanzheng opened 1 month ago

longquanzheng commented 1 month ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

It would be really nice to allow reset API to bring a [few] new signals as atomic operation. I can see several use cases for that reset and then skip some activity that we don’t want to rerun. We could add some simple code to skip based on the signal. This will be much simpler than any other alternatives that I have seen. reset with cherry pick some signals but not all. Currently we have the option to preserve all signals after reset point, or none. But it’s a hard decision when we want to preserve some. Reset with some special behavior— just let the workflow knows that current run is in a reset state so that it can adjust the behavior accordingly. Etc etc

Additional context

cretz commented 1 month ago

This may be similar to #1203

longquanzheng commented 1 month ago

This may be similar to #1203

Yeah that looks very similar: https://github.com/temporalio/temporal/issues/1203