Skip to content

Commit de68d65

Browse files
committed
Fix: copy status cache before appending worker containers (was mutating shared cache, growing instance count on every API call)
1 parent 37348ef commit de68d65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ async def api_services_deployed(request: Request) -> list[dict[str, Any]]:
448448
"""
449449
_require_auth_api(request)
450450
try:
451-
statuses = orchestrator.get_status_cached()
451+
statuses = list(orchestrator.get_status_cached()) # copy — don't mutate cache
452452
except RuntimeError:
453453
statuses = []
454454

0 commit comments

Comments
 (0)