Long-running jobs¶
Notebook sessions can end before a long job finishes. Submit without waiting, save the job ID, and check back later:
# Later, in the same or a new session
status = client.get_job_status(job_id)
print(status["status"])
if status["status"] == "completed":
client.download_model(job_id, "./my-model")
Jobs keep running on the cluster after your notebook disconnects.
Handling failures¶
job.run(wait=True) returns a result instead of raising when a job fails. Check
result["status"] before downloading. Authentication and validation errors raise
immediately.