Jobs
Launch Your First Job
Let’s define our very first job, a simple job that runs nvidia-smi
.
1. Define the job config
Copy the following YAML into a show-gpus.yaml
file:
2. Launch the job
To launch this job, simply run:
You can also choose to give the job an optional name (if not set, Komodo will automatically generate a name):
Names are not required to be unique across jobs. This requirement only exists for machines/services.
The logs will automatically be live streamed as the job runs. You can safely Ctrl-C after the job is submitted without the job being terminated.
You can also launch the job and detach from the logs:
3. Get the job logs
You can see the logs for the job in the dashboard, or get them using the CLI:
When interacting with jobs using the CLI, you reference them using their unique ID
For jobs that are currently running, you can live stream the logs:
4. SSH into the job instance
You can also SSH into the instance that the job is running on:
5. List all jobs
You can list all the jobs you have launched by running: