diff --git a/server.py b/server.py index faecacc..c751594 100644 --- a/server.py +++ b/server.py @@ -1788,9 +1788,12 @@ async def record_run(req: RecordRunRequest, user: User = Depends(get_required_us # Helper to fetch from L1 without blocking event loop def fetch_l1_run(): + import time as _time url = f"{l1_url}/runs/{req.run_id}" logger.info(f"record_run: Fetching run from L1: {url}") + t0 = _time.time() resp = requests.get(url, timeout=30) + logger.info(f"record_run: L1 request took {_time.time()-t0:.3f}s, status={resp.status_code}") if resp.status_code == 404: raise ValueError(f"Run not found on L1: {req.run_id}") resp.raise_for_status()