MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / finalize_current_shard

Method finalize_current_shard

utils/cache.py:99–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97
98
99 def finalize_current_shard(self):
100 if self.shard_file is None:
101 # no-op if already finalized
102 return
103 self.shard_file.close()
104 self.shard_file = None
105 self.shard += 1
106 self.con.commit()
107
108
109 def add(self, item):

Callers 3

addMethod · 0.95
_map_and_cacheFunction · 0.95
cache.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected