skypilot icon indicating copy to clipboard operation
skypilot copied to clipboard

[Controller] Support deleting controller from sky cli non-interactively

Open romilbhardwaj opened this issue 1 year ago • 3 comments

There's no way to bypass the delete prompt programmatically when terminating a controller:

$ sky down -y $CONTROLLER
WARNING: Tearing down the managed jobs controller. Please be aware of the following:
 * All logs and status information of the managed jobs (output of `sky jobs queue`) will be lost.
 * No in-progress managed jobs found. It should be safe to terminate (see caveats above).
To proceed, please type 'delete':

This makes it hard to clean up the controller in an non-interactive setting (e.g., airflow task).

Maybe it should respect -y or have some flag.

romilbhardwaj avatar Sep 24 '24 19:09 romilbhardwaj

It might work with -p?

Michaelvll avatar Sep 24 '24 19:09 Michaelvll

Hmm -p doesn't help either. abort() happens before the core.down() code path is called...

https://github.com/skypilot-org/skypilot/blob/800f7d6971bd604f266faebb33d044c7d5baca55/sky/cli.py#L2775-L2781

romilbhardwaj avatar Sep 24 '24 19:09 romilbhardwaj

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Apr 21 '25 02:04 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar May 01 '25 02:05 github-actions[bot]