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

Method refresh_cleanup_task

src/services/file_cache.py:200–205  ·  view source on GitHub ↗

Apply the latest timeout setting to the cleanup background task.

(self)

Source from the content-addressed store, hash-verified

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."""
202 if self._is_cleanup_disabled():
203 await self.stop_cleanup_task()
204 return False
205 return await self.start_cleanup_task()
206
207 async def _cleanup_loop(self):
208 """Background task to clean up expired files"""

Callers 2

lifespanFunction · 0.80

Calls 3

_is_cleanup_disabledMethod · 0.95
stop_cleanup_taskMethod · 0.95
start_cleanup_taskMethod · 0.95

Tested by

no test coverage detected