AsyncJobFailed
AsyncJobFailed
Examples
try:
job = model.upload_artifact(artifact_path)
job.wait() # Wait for completion
except AsyncJobFailed as e:
print(f”Job failed: {e.message}”)
# Check job logs or retry operationjob = model.upload_artifact(artifact_path)
while not job.is_complete():
if job.status == JobStatus.FAILED:
print(f”Job failed: {job.error_message}”)
break
time.sleep(5)Parameters
Last updated
Was this helpful?