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

Fix blocking calls preventing streaming #16

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

collindutter
Copy link
Member

No description provided.

if process is not None:
return_code = process.poll()
if return_code is not None:
stdout, stderr = run_process.process.communicate()
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 is the key change. communicate blocks, poll does not.

Copy link
Member

@SavagePencil SavagePencil left a 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)
Copy link
Member

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?

Copy link
Member Author

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}")
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

@collindutter collindutter merged commit fce4961 into main Apr 22, 2024
2 checks passed
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.

None yet

3 participants