-
Notifications
You must be signed in to change notification settings - Fork 21
expose timeout_seconds for exec{_async} #111
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
expose timeout_seconds for exec{_async} #111
Conversation
python/sdk/forevervm_sdk/repl.py
Outdated
|
|
||
| import httpx | ||
| from httpx_ws import WebSocketSession, connect_ws | ||
| from python.sdk.forevervm_sdk import DEFAULT_INSTRUCTION_TIMEOUT_SECONDS |
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.
Importing DEFAULT_INSTRUCTION_TIMEOUT_SECONDS from init.py here creates a circular dependency (since init.py imports Repl from repl.py). Consider moving shared constants to a separate module to break the cycle.
aa09546 to
d188b3d
Compare
python/sdk/forevervm_sdk/repl.py
Outdated
| class ReplExecResult: | ||
| _request_id = -1 | ||
| _instruction_id = -1 | ||
| _output = deque[StandardOutput]() |
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.
the changes here are related but came up during linting and minimal enough that I threw them into this PR
No description provided.