MCPcopy
hub / github.com/feast-dev/feast / clone

Method clone

sdk/python/feast/infra/registry/registry.py:311–321  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

309 self.cached_registry_proto.project_metadata = []
310
311 def clone(self) -> "Registry":
312 new_registry = Registry("project", None, None, self._auth_config)
313 new_registry.cached_registry_proto_ttl = timedelta(seconds=0)
314 new_registry.cached_registry_proto = (
315 self.cached_registry_proto.__deepcopy__()
316 if self.cached_registry_proto
317 else RegistryProto()
318 )
319 new_registry.cached_registry_proto_created = _utc_now()
320 new_registry._registry_store = NoopRegistryStore()
321 return new_registry
322
323 def update_infra(self, infra: Infra, project: str, commit: bool = True):
324 self._prepare_registry_for_changes(project)

Callers

nothing calls this directly

Calls 4

_utc_nowFunction · 0.90
NoopRegistryStoreClass · 0.90
RegistryClass · 0.70
__deepcopy__Method · 0.45

Tested by

no test coverage detected