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

startUpdate require wait stage #1448

Merged

Conversation

dandavison
Copy link
Contributor

@dandavison dandavison commented Jun 21, 2024

Closes #1403

What was changed

Make startUpdate require

waitForStage: WorkflowUpdateStage.ACCEPTED

Why?

We decided to require this to make it explicit that the call -- despite being named startXXX -- blocks until a worker is available and accepts/rejects the update.

@dandavison dandavison requested a review from a team as a code owner June 21, 2024 11:44
@dandavison dandavison force-pushed the sdk-1403-startUpdate-require-wait-stage branch 2 times, most recently from ea8d425 to 84e2c11 Compare June 21, 2024 14:27
@dandavison
Copy link
Contributor Author

This is ready for review now.

temporalio/features#504 updates the features repo to be compatible with the backwards-incompatible SDK changes made in this PR.

@dandavison dandavison force-pushed the sdk-1403-startUpdate-require-wait-stage branch 2 times, most recently from 9eabfe8 to 79fa903 Compare July 2, 2024 11:36
Copy link
Contributor

@mjameswh mjameswh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the lint issue.

Also, don't merge just yet. I need to stabilize CI.

@dandavison dandavison merged commit 12c9e2a into temporalio:main Jul 10, 2024
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Make startUpdate users aware that it's synchronous w/ worker
2 participants