removed default scanning of "input" and "output" folders; added separate endpoint for test suite.

This commit is contained in:
bigcat88
2025-09-16 11:28:29 +03:00
parent 0be513b213
commit 24a95f5ca4
4 changed files with 23 additions and 3 deletions

View File

@@ -272,7 +272,7 @@ async def autoclean_unit_test_assets(http: aiohttp.ClientSession, api_base: str)
async def trigger_sync_seed_assets(session: aiohttp.ClientSession, base_url: str) -> None:
"""Force a fast sync/seed pass by calling the ComfyUI '/object_info' endpoint."""
async with session.get(base_url + "/object_info") as r:
async with session.post(base_url + "/api/assets/scan/seed", json={"roots": ["models", "input", "output"]}) as r:
await r.read()
await asyncio.sleep(0.1) # tiny yield to the event loop to let any final DB commits flush