Skip to content

Expose invocation id of a call #496

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

Merged
merged 3 commits into from
Mar 11, 2025
Merged

Conversation

igalshilman
Copy link
Contributor

No description provided.

Copy link
Contributor

@slinkydeveloper slinkydeveloper left a comment

Choose a reason for hiding this comment

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

Can you rebase on main and fix the TODOs in the test services? Now you can enable few new tests.

@igalshilman igalshilman marked this pull request as ready for review March 11, 2025 08:59
@@ -71,7 +71,7 @@ const o = restate.service({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
invocationId: string
): Promise<void> {
// TODO add cancel invocation here!
ctx.cancel(restate.InvocationIdParser.fromString(invocationId));
return Promise.reject(new TerminalError("cancel is not supported yet"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably you need to remove this :)

Suggested change
return Promise.reject(new TerminalError("cancel is not supported yet"));

- add call/send with idempotency key
- add cancel with invocation id
- add call/send to return the invocation id
- add ctx.attach
@igalshilman igalshilman merged commit cdd2a32 into restatedev:main Mar 11, 2025
2 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.

2 participants