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

Describe abort/inactivity timeouts #218

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Describe abort/inactivity timeouts #218

merged 2 commits into from
Dec 18, 2023

Conversation

slinkydeveloper
Copy link
Contributor

Fix #216

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: e72340f
Status: ✅  Deploy successful!
Preview URL: https://c6c58836.documentation-beg.pages.dev
Branch Preview URL: https://issues-216.documentation-beg.pages.dev

View logs

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

LGTM. +1 for merging.

docs/services/invocation.md Outdated Show resolved Hide resolved
docs/services/invocation.md Outdated Show resolved Hide resolved
When suspending, Restate internally holds another timer to protect Restate from connection issues and/or misbehaving code/SDKs that prevent the tear down of the connection. This timer can be configured with the option [`worker.invoker.abort_timeout`](https://docs.restate.dev/restate/configuration).
Once the `abort_timeout` is fired, the user code is potentially interrupted, and all the subsequent progress is potentially lost.

If you have [side effects](sdk/side-effects) that take more than `inactivity_timeout + abort_timeout` to execute, you might need to tune these timeouts accordingly, for example by increasing the `inactivity_timeout` to a value larger than the expected side effect duration.
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this not only applies to side effects but computation in general.

Copy link
Contributor Author

@slinkydeveloper slinkydeveloper Dec 18, 2023

Choose a reason for hiding this comment

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

I know, but I think this is easier to explain and probably much more common to happen, I don't really know how to word "computation in general" :) Any proposal?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe side effect is fine because it is something people familiar with Restate will understand as a computation step. Computation in general might be misunderstood as the whole handler must not take longer than this duration.

@slinkydeveloper slinkydeveloper merged commit 9c4b81b into main Dec 18, 2023
3 checks passed
@slinkydeveloper slinkydeveloper deleted the issues/216 branch December 18, 2023 09:45
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.

Document time bounds of service invocations
2 participants