skypilot_cluster_autostop
Set an autostop timer to stop or tear down idle clusters after a specified number of minutes. Control idle detection and run a pre-stop hook.
Instructions
Set an autostop timer for a cluster. The cluster will automatically stop (or tear down if down=True) after being idle for the specified number of minutes. Set idle_minutes to -1 to disable. Set wait_for to control idle detection: 'jobs_and_ssh' (default), 'jobs', or 'none'. Set hook to a shell command to run on the cluster before autostop. Returns a request_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| down | No | ||
| hook | No | ||
| wait_for | No | ||
| cluster_name | Yes | ||
| hook_timeout | No | ||
| idle_minutes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |