This commit is contained in:
Ignas Baranauskas 2025-10-03 14:11:23 +02:00 committed by GitHub
commit c645c49924
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 342 additions and 89 deletions

View file

@ -100,6 +100,11 @@ class DiskDistributionRegistry(DistributionRegistry):
if existing_obj and existing_obj.provider_id == obj.provider_id:
return False
# Skip persistence for from_config objects - they should only exist in memory
if hasattr(obj, "source") and obj.source == "from_config":
logger.debug(f"Skipping persistence for from_config object {obj.type}:{obj.identifier}")
return True
await self.kvstore.set(
KEY_FORMAT.format(type=obj.type, identifier=obj.identifier),
obj.model_dump_json(),