Checking onboardin flow - fix 3

This commit is contained in:
Urtzi Alfaro
2025-07-27 11:04:32 +02:00
parent 30ac945058
commit 0b14cf9eb2
3 changed files with 92 additions and 12 deletions

View File

@@ -83,13 +83,11 @@ async def start_training_job(
except Exception as e:
logger.warning("Failed to publish job started event", error=str(e))
# Start training in background
background_tasks.add_task(
training_service.execute_training_job,
db, # Pass the database session
job.job_id,
job.tenant_id,
request # Pass the request object
training_service.execute_training_job_simple,
new_job_id,
tenant_id_str,
request
)
logger.info("Training job created",