Improve training code 2

This commit is contained in:
Urtzi Alfaro
2025-07-28 20:20:54 +02:00
parent 98f546af12
commit 7cd595df81
6 changed files with 229 additions and 153 deletions

View File

@@ -59,10 +59,10 @@ async def start_training_job(
# Delegate to training service (Step 1 of the flow)
result = await training_service.start_training_job(
tenant_id=tenant_id,
bakery_location=request.bakery_location or (40.4168, -3.7038), # Default Madrid
bakery_location=(40.4168, -3.7038), # Default Madrid coordinates
requested_start=request.start_date if request.start_date else None,
requested_end=request.end_date if request.end_date else None,
job_id=request.job_id
job_id=None # Let the service generate it
)
return TrainingJobResponse(**result)