Stop a job
- Baseten CLI
- Training API
To stop a job:
-
Run the following command, replacing
<job_id>with the job ID, and confirm when prompted:The command printsStopped training job <job_id>. Synced checkpoints remain accessible.To skip the prompt in scripts, add--yes; when stdin isn’t a terminal, the command requires it. -
Confirm that the job stopped:
The command prints
"TRAINING_JOB_STOPPED".
Recreate a job
The new job starts from the beginning and gets a new ID.- Baseten CLI
- Training API
To recreate a job:
-
Run the following command, replacing
<job_id>with the original job’s ID:The command printsCreated training job <new_job_id> from <job_id>. -
To confirm the new job exists, describe it, replacing
<new_job_id>with the ID the command printed:TheID:line is the new job’s ID.
Next steps
- Monitor training jobs: Follow the new job’s status and logs.
- Delete a job or project: Remove the stopped job and its undeployed checkpoints.