-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix blocking calls preventing streaming #16
Conversation
if process is not None: | ||
return_code = process.poll() | ||
if return_code is not None: | ||
stdout, stderr = run_process.process.communicate() |
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 is the key change. communicate
blocks, poll
does not.
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.
minor Qs
uvicorn.run( | ||
"griptapecli.core.skatepark:app", host=host, port=port, reload=False, workers=4 | ||
) | ||
uvicorn.run("griptapecli.core.skatepark:app", host=host, port=port, reload=False) |
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.
what does workers
default to?
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.
1
but I will explicitly set it in an upcoming PR.
@@ -101,7 +103,7 @@ def list_structure_runs(structure_id: str) -> list[Run]: | |||
] | |||
|
|||
|
|||
@app.patch("/api/runs/{run_id}") | |||
@app.patch("/api/structure-runs/{run_id}") |
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.
did we change this in Cloud?
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.
Yes
No description provided.