MCPcopy Create free account
hub / github.com/apify/crawlee-python / reset

Method reset

src/crawlee/statistics/_statistics.py:277–282  ·  view source on GitHub ↗

Reset the statistics to their defaults and remove any persistent state.

(self)

Source from the content-addressed store, hash-verified

275 )
276
277 async def reset(self) -> None:
278 """Reset the statistics to their defaults and remove any persistent state."""
279 await self._state.reset()
280 self.error_tracker = ErrorTracker()
281 self.error_tracker_retry = ErrorTracker()
282 self._requests_in_progress.clear()
283
284 def _log(self) -> None:
285 stats = self.calculate()

Callers 5

reset_storeMethod · 0.45
dropMethod · 0.45
purgeMethod · 0.45
browser_page_contextFunction · 0.45
runMethod · 0.45

Calls 2

ErrorTrackerClass · 0.90
clearMethod · 0.45

Tested by

no test coverage detected