2
0

increase cleanup time to 5 minutes

This commit is contained in:
Stefan Bühler 2022-04-07 17:26:37 +02:00
parent 896cd93224
commit dd9c21b431

View File

@ -183,7 +183,7 @@ class Database:
if self._state_filename: if self._state_filename:
nursery.start_soon(self._run_statefile) nursery.start_soon(self._run_statefile)
while True: while True:
await trio.sleep(60) # sleep 15 minutes await trio.sleep(300) # cleanup every 5 minutes
_logger.debug("Running database cleanup") _logger.debug("Running database cleanup")
self._drop_outdated() self._drop_outdated()
if self._changed_since_last_cleanup: if self._changed_since_last_cleanup: