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

Add failure variant for GetState, PollInputStream and SleepEntryMessage #211

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

tillrohrmann
Copy link
Contributor

This commit updates the SDK to the latest service protocol version. Part of it is to enable failure variants for the GetState, PollInputStream and SleepEntryMessages so that the runtime can cancel these entries. This commit also adds tests for verifying the changes.

This fixes #210.

@slinkydeveloper
Copy link
Contributor

We need to merge #195 first

src/invocation.ts Outdated Show resolved Hide resolved
src/state_machine.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@igalshilman igalshilman left a comment

Choose a reason for hiding this comment

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

@tillrohrmann thanks for changes, they look good to me +1 to merge when the tests pass.

I've tried to re-trigger the test, didn't help.
perhaps you need to rebase on the main branch again?

@tillrohrmann
Copy link
Contributor Author

Thanks for the review @igalshilman. I think the e2e tests are currently failing because the runtime image is missing some changes. Locally the e2e tests including restatedev/e2e#228 are passing.

This commit updates the SDK to the latest service protocol version. Part
of it is to enable failure variants for the GetState, PollInputStream and
SleepEntryMessages so that the runtime can cancel these entries. This
commit also adds tests for verifying the changes.

This fixes restatedev#210.
@tillrohrmann tillrohrmann merged commit 1785bd4 into restatedev:main Dec 19, 2023
1 of 2 checks passed
@tillrohrmann tillrohrmann deleted the issues/210 branch December 19, 2023 11:29
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.

Update SDK wrt to new service protocol definition which makes all completable journal entries fallible
3 participants