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

Invocation task inactivity timeout(s) #237

Merged
merged 8 commits into from
Mar 31, 2023

Conversation

slinkydeveloper
Copy link
Contributor

Fix #222

@slinkydeveloper
Copy link
Contributor Author

I tested locally and it works, but needs #235

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.

Thanks for creating this PR @slinkydeveloper. The changes look good to me. +1 for merging after resolving the comments.

src/invoker/src/invoker.rs Show resolved Hide resolved
src/invoker/src/invoker.rs Outdated Show resolved Hide resolved
src/invoker/src/invoker.rs Outdated Show resolved Hide resolved
@@ -51,6 +52,9 @@ pub(crate) enum InvocationTaskError {
Network(hyper::Error),
#[error("unexpected join error, looks like hyper panicked: {0}")]
UnexpectedJoinError(#[from] JoinError),
// TODO introduce hint with CodedError to increase timeout config
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice :-)

src/invoker/src/invocation_task.rs Outdated Show resolved Hide resolved
src/invoker/src/invocation_task.rs Outdated Show resolved Hide resolved
@@ -374,19 +386,35 @@ where
}
}
},
_ = tokio::time::sleep(self.bidi_stream_inactivity_graceful_close_timer) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Great to see how natural the timeout implementation integrates into the existing code :-)

src/invoker/src/invoker.rs Outdated Show resolved Hide resolved
src/invoker/src/invoker.rs Outdated Show resolved Hide resolved
@slinkydeveloper slinkydeveloper force-pushed the issues/222 branch 2 times, most recently from 77831dd to 8dd603b Compare March 31, 2023 12:24
@slinkydeveloper slinkydeveloper merged commit a30c36d into restatedev:main Mar 31, 2023
@slinkydeveloper slinkydeveloper deleted the issues/222 branch March 31, 2023 13:11
@slinkydeveloper slinkydeveloper mentioned this pull request Apr 14, 2023
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.

Invocation task should gracefully close the request stream after an inactivity timeout
2 participants