fix: skip redundant hydration in metadata sync service

This commit is contained in:
pixelpaws
2025-10-10 08:49:54 +08:00
parent ef03a2a917
commit 8f5e134d3e
3 changed files with 15 additions and 5 deletions

View File

@@ -117,6 +117,7 @@ def test_metadata_sync_fetch_and_update_updates_cache(tmp_path: Path) -> None:
)
model_data = {"sha256": "abc", "file_path": str(tmp_path / "model.safetensors")}
asyncio.run(manager.hydrate_model_data(model_data))
success, error = asyncio.run(
service.fetch_and_update_model(
sha256="abc",