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

Method start_cleanup_task

src/services/file_cache.py:180–188  ·  view source on GitHub ↗

Start background cleanup task

(self)

Source from the content-addressed store, hash-verified

178 pass
179
180 async def start_cleanup_task(self):
181 """Start background cleanup task"""
182 if self._is_cleanup_disabled():
183 debug_logger.log_info("Cache cleanup disabled (timeout <= 0), skip starting cleanup task")
184 return False
185 if self._cleanup_task is None or self._cleanup_task.done():
186 self._cleanup_task = asyncio.create_task(self._cleanup_loop())
187 return True
188 return True
189
190 async def stop_cleanup_task(self):
191 """Stop background cleanup task"""

Callers 1

refresh_cleanup_taskMethod · 0.95

Calls 5

_is_cleanup_disabledMethod · 0.95
_cleanup_loopMethod · 0.95
log_infoMethod · 0.80
doneMethod · 0.80
create_taskMethod · 0.80

Tested by

no test coverage detected