MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / timed_index_update

Function timed_index_update

archivebox/index/__init__.py:215–224  ·  view source on GitHub ↗
(out_path: Path)

Source from the content-addressed store, hash-verified

213@contextmanager
214@enforce_types
215def timed_index_update(out_path: Path):
216 log_indexing_started(out_path)
217 timer = TimedProgress(TIMEOUT * 2, prefix=' ')
218 try:
219 yield
220 finally:
221 timer.end()
222
223 assert out_path.exists(), f'Failed to write index file: {out_path}'
224 log_indexing_finished(out_path)
225
226
227@enforce_types

Callers 1

write_main_indexFunction · 0.85

Calls 4

endMethod · 0.95
log_indexing_startedFunction · 0.85
TimedProgressClass · 0.85
log_indexing_finishedFunction · 0.85

Tested by

no test coverage detected