skypilot-users
Is there a way to configure managed spot instances to automatically shut down upon launch?
Ch
Chaskin Saroff
Asked on Nov 17, 2023
Yes, for managed spot instances, they are automatically shut down upon job exit. To launch a managed spot instance and have it shut down after executing a command, you can use the sky spot launch
command followed by the command you want to execute. For example:
sky spot launch -- echo hi
This will launch the spot instance, execute the command echo hi
, and then shut down the instance.
Dec 19, 2023Edited by