[Controller] Support deleting controller from sky cli non-interactively
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.
It might work with -p?
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
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.
This issue was closed because it has been stalled for 10 days with no activity.