You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue with skypilot-nightly where a subprocess call hangs indefinitely. This occurs when trying to execute a task using the sky.exec method in my Python script. The script gets stuck at a specific subprocess call within the sky library, and I have to manually interrupt it to exit.
Code
task=sky.Task.from_yaml(TASK_FILE)
task.workdir=WORKDIRtask.num_nodes=1# One machine per runtask.run=f"./venv/bin/python3 -m module_x"sky.exec(
task,
cluster_name=CLUSTER_NAME,
detach_run=True,
)
Expected Behavior
I expected the sky.exec call to execute the task and complete or fail without hanging.
Actual Behavior
The script gets stuck at a subprocess call within the sky library's execution.py file. Specifically, the call to subprocess_utils.run('sky status --no-show-spot-jobs --no-show-services', env=env) never completes, forcing me to interrupt the process manually with CMD+C.
Thanks for the report @Danivilanova! Question: does this happen consistently e.g., if you rerun the script? What if you run sky status --no-show-spot-jobs --no-show-services manually in terminal?
@Michaelvll maybe one enhancement we can do is detect whether entrypoint is CLI or Python and in the latter, disable such logging-related calls.
It happens every time I run the script and running sky status --no-show-spot-jobs --no-show-services from the terminal or the Python Interpreter works in both cases.
Description
I encountered an issue with skypilot-nightly where a subprocess call hangs indefinitely. This occurs when trying to execute a task using the sky.exec method in my Python script. The script gets stuck at a specific subprocess call within the sky library, and I have to manually interrupt it to exit.
Code
Expected Behavior
I expected the sky.exec call to execute the task and complete or fail without hanging.
Actual Behavior
The script gets stuck at a subprocess call within the sky library's execution.py file. Specifically, the call to subprocess_utils.run('sky status --no-show-spot-jobs --no-show-services', env=env) never completes, forcing me to interrupt the process manually with CMD+C.
Environment
Python Version: 3.11.8
Library Version: skypilot-nightly==1.0.0.dev20240404
Operating System: MacBook Air M2 16GB macOS 14.4 (23E214)
Additional Information
Issue occurs in the library code, specifically at:
venv/lib/python3.11/site-packages/sky/execution.py
Commenting out the problematic subprocess call allows the script to proceed, suggesting the issue lies with how the subprocess is executed or managed.
Version & Commit info:
sky -v
: skypilot, version 1.0.0.dev20240404sky -c
: skypilot, commit 495140eThe text was updated successfully, but these errors were encountered: