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:
@@ -31,8 +31,7 @@ services:
|
||||
- internal
|
||||
- externalnet
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
- postgres
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user