Improve UI

This commit is contained in:
Urtzi Alfaro
2025-12-30 14:40:20 +01:00
parent e494ea8635
commit c07df124fb
71 changed files with 647 additions and 265 deletions

View File

@@ -364,6 +364,10 @@ class EnhancedTrainingService:
job_id, results=json_safe_result
)
# CRITICAL: Commit the session to persist the completed status to database
# Without this commit, the status update is lost when the session closes
await session.commit()
logger.info("Enhanced training job completed successfully",
job_id=job_id,
models_created=len(stored_models))
@@ -380,7 +384,10 @@ class EnhancedTrainingService:
await self.training_log_repo.complete_training_log(
job_id, error_message=str(e)
)
# Commit the failure status to database
await session.commit()
error_result = {
"job_id": job_id,
"tenant_id": tenant_id,