Improve gateway service 2
This commit is contained in:
@@ -11,7 +11,7 @@ import structlog
|
||||
from app.schemas.training import (
|
||||
TrainingJobRequest,
|
||||
TrainingJobResponse,
|
||||
TrainingJobStatus,
|
||||
TrainingStatus,
|
||||
SingleProductTrainingRequest,
|
||||
TrainingJobProgress,
|
||||
DataValidationRequest,
|
||||
@@ -89,7 +89,7 @@ async def start_training_job(
|
||||
|
||||
@router.get("/jobs", response_model=List[TrainingJobResponse])
|
||||
async def get_training_jobs(
|
||||
status: Optional[TrainingJobStatus] = Query(None),
|
||||
status: Optional[TrainingStatus] = Query(None, description="Filter jobs by status"),
|
||||
limit: int = Query(100, ge=1, le=1000),
|
||||
offset: int = Query(0, ge=0),
|
||||
tenant_id: str = Depends(get_current_tenant_id_dep),
|
||||
|
||||
Reference in New Issue
Block a user