MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / stop_cleanup_task

Method stop_cleanup_task

src/services/file_cache.py:190–198  ·  view source on GitHub ↗

Stop background cleanup task

(self)

Source from the content-addressed store, hash-verified

188 return True
189
190 async def stop_cleanup_task(self):
191 """Stop background cleanup task"""
192 if self._cleanup_task:
193 self._cleanup_task.cancel()
194 try:
195 await self._cleanup_task
196 except asyncio.CancelledError:
197 pass
198 self._cleanup_task = None
199
200 async def refresh_cleanup_task(self) -> bool:
201 """Apply the latest timeout setting to the cleanup background task."""

Callers 2

refresh_cleanup_taskMethod · 0.95
lifespanFunction · 0.80

Calls 1

cancelMethod · 0.80

Tested by

no test coverage detected