Fix start training job
This commit is contained in:
@@ -95,7 +95,14 @@ async def start_training_job(
|
|||||||
job_id=job.job_id,
|
job_id=job.job_id,
|
||||||
tenant_id=tenant_id)
|
tenant_id=tenant_id)
|
||||||
|
|
||||||
return job
|
return TrainingJobResponse(
|
||||||
|
job_id=job.job_id,
|
||||||
|
status=TrainingStatus.PENDING,
|
||||||
|
message="Training job created successfully",
|
||||||
|
tenant_id=tenant_id,
|
||||||
|
created_at=job.created_at,
|
||||||
|
estimated_duration_minutes=30
|
||||||
|
)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Failed to start training job",
|
logger.error("Failed to start training job",
|
||||||
|
|||||||
Reference in New Issue
Block a user