chore: snapshot workflow migration progress
This commit is contained in:
@@ -519,6 +519,12 @@ async def trigger_gpu_probe(current_user: User = Depends(require_global_admin)):
|
||||
return {"task_id": str(result.id), "queued": True}
|
||||
|
||||
|
||||
@router.post("/gpu-probe", status_code=http_status.HTTP_202_ACCEPTED)
|
||||
async def trigger_gpu_probe_legacy_alias(current_user: User = Depends(require_global_admin)):
|
||||
"""Backward-compatible alias used by the current admin frontend."""
|
||||
return await trigger_gpu_probe(current_user)
|
||||
|
||||
|
||||
@router.get("/probe/gpu/result")
|
||||
async def get_gpu_probe_result(
|
||||
current_user: User = Depends(require_global_admin),
|
||||
@@ -535,6 +541,15 @@ async def get_gpu_probe_result(
|
||||
return json.loads(setting.value)
|
||||
|
||||
|
||||
@router.get("/gpu-probe")
|
||||
async def get_gpu_probe_result_legacy_alias(
|
||||
current_user: User = Depends(require_global_admin),
|
||||
db: AsyncSession = Depends(get_db),
|
||||
):
|
||||
"""Backward-compatible alias used by the current admin frontend."""
|
||||
return await get_gpu_probe_result(current_user, db)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Render health check
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -733,4 +748,3 @@ async def update_worker_config(
|
||||
enabled=cfg.enabled,
|
||||
updated_at=cfg.updated_at.isoformat(),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user