Fix Swarm compatibility, add legacy /registry/record-run route

- Fix depends_on syntax for Docker Swarm (simple list, not extended)
- Add /registry/record-run as legacy alias for /assets/record-run

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-08 00:33:59 +00:00
parent a6e83c72bd
commit 9c10de7534
2 changed files with 2 additions and 2 deletions

View File

@@ -31,8 +31,7 @@ services:
- internal
- externalnet
depends_on:
postgres:
condition: service_healthy
- postgres
deploy:
replicas: 1
restart_policy:

View File

@@ -1649,6 +1649,7 @@ async def register_asset(req: RegisterRequest, user: User = Depends(get_required
@app.post("/assets/record-run")
@app.post("/registry/record-run") # Legacy route
async def record_run(req: RecordRunRequest, user: User = Depends(get_required_user)):
"""Record an L1 run and register the output. Requires authentication."""
# Fetch run from the specified L1 server