Skip to content

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

Merged
merged 13 commits into from
Mar 18, 2024
Merged

Conversation

joeyballentine
Copy link
Member

@joeyballentine joeyballentine commented Mar 3, 2024

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.

@RunDevelopment
Copy link
Member

Sorry for the delay. I forgot to submit my review...

@joeyballentine
Copy link
Member Author

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,
Copy link
Member Author

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

@joeyballentine joeyballentine changed the title Server side killing Server-side execution timeout killing Mar 18, 2024
@joeyballentine
Copy link
Member Author

I think this is good enough for now.

@joeyballentine joeyballentine merged commit 8fc52bf into main Mar 18, 2024
@joeyballentine joeyballentine deleted the server-side-killing branch March 18, 2024 15:39
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