Start background cleanup task
(self)
| 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""" |
no test coverage detected