Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atomic workflow reset & update #567

Open
boonsuen opened this issue Dec 7, 2024 · 1 comment
Open

Atomic workflow reset & update #567

boonsuen opened this issue Dec 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@boonsuen
Copy link

boonsuen commented Dec 7, 2024

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

  • The use case is to reset the workflow to a previous point and immediately sends a update request to update the state.
  • Currently, reset & update cannot be applied together. Update can happen milliseconds~second later after reset. There could be a race that when the code rely on the updated state after reset immediately, but the update request is not guaranteed to be applied atomically with reset, resulting in the reset-ed workflow execution continues with the "old" state.

Describe the solution you'd like
Provide a API, preferably something like ResetWithUpdate(...) to reset to a point of event with the update request fulfilled.

Describe alternatives you've considered
Using workflow.Await but the approach comes with extra flags to control the logic flow.

Additional context

@boonsuen boonsuen added the enhancement New feature or request label Dec 7, 2024
@Quinn-With-Two-Ns
Copy link
Contributor

Moving to features since this would apply to all SDK's and would also require server support

@Quinn-With-Two-Ns Quinn-With-Two-Ns transferred this issue from temporalio/sdk-go Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants