-
-
Notifications
You must be signed in to change notification settings - Fork 322
Server-side execution timeout killing #2646
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
Conversation
Sorry for the delay. I forgot to submit my review... |
Of course, since things can't just be easy, now there's an issue where the first request after killing just gets ignored... |
@@ -185,7 +185,7 @@ async def get_sse(self, request: Request): | |||
"/sse", | |||
headers=request.headers, | |||
data=request.body, | |||
timeout=None, | |||
timeout=5, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to have fixed the issue, and I don't think it's caused any side effects
I think this is good enough for now. |
This moves the killing of the backend to the backend side, by killing the executor process instead of the entire backend.
This somewhat causes a big problem, which is that when the executor server restarts, it causes the SSE to get stuck/stop working. However, I think this should be solved in a separate PR, since this is actually already an issue with the double-server stuff, that just gets exposed by this change.