Apply the latest timeout setting to the cleanup background task.
(self)
| 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""" |
no test coverage detected