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

Method commit

sdk/python/feast/infra/registry/registry.py:1367–1375  ·  view source on GitHub ↗

Commits the state of the registry cache to the remote registry store.

(self)

Source from the content-addressed store, hash-verified

1365 return proto_registry_utils.list_project_metadata(registry_proto, project)
1366
1367 def commit(self):
1368 """Commits the state of the registry cache to the remote registry store."""
1369 if self.cached_registry_proto:
1370 self._registry_store.update_registry_proto(self.cached_registry_proto)
1371 if self._file_path is not None and self._file_path.exists():
1372 try:
1373 self._file_mtime = self._file_path.stat().st_mtime
1374 except (OSError, FileNotFoundError):
1375 pass
1376
1377 def refresh(self, project: Optional[str] = None):
1378 """Refreshes the state of the registry cache by fetching the registry state from the remote registry store."""

Callers 15

__init__Method · 0.95
update_infraMethod · 0.95
apply_entityMethod · 0.95
apply_data_sourceMethod · 0.95
delete_data_sourceMethod · 0.95
apply_feature_serviceMethod · 0.95
apply_feature_viewMethod · 0.95
delete_label_viewMethod · 0.95
apply_materializationMethod · 0.95
delete_feature_viewMethod · 0.95
delete_entityMethod · 0.95

Calls 1

update_registry_protoMethod · 0.45

Tested by 2

test_commitFunction · 0.76