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

Update-with-start early return sample #401

Merged
merged 26 commits into from
Jan 23, 2025
Merged

Update-with-start early return sample #401

merged 26 commits into from
Jan 23, 2025

Conversation

dandavison
Copy link
Contributor

@dandavison dandavison commented Dec 11, 2024

Cannot be merged until UwS is released.

startWorkflowOperation,
});
const wfHandle = await startWorkflowOperation.workflowHandle();
const finalReport = await wfHandle.result();
Copy link
Contributor

Choose a reason for hiding this comment

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

You should print the early confirmation before awaiting for the workflow completion. Right now, both will display at the same time, which fails to demonstrate the notion of an "early return".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@dandavison dandavison force-pushed the uws-early-return branch 2 times, most recently from 462b085 to c41951a Compare January 17, 2025 20:28
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.

Only did a quick last review, but that looks ok to me. If anything pops up, we'll revisit.

Thanks @dandavison !

@dandavison dandavison merged commit 76917e9 into main Jan 23, 2025
40 checks passed
@dandavison dandavison deleted the uws-early-return branch January 23, 2025 21:08
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.

2 participants