diff --git a/src/capport/database.py b/src/capport/database.py index ea62c9a..522bebc 100644 --- a/src/capport/database.py +++ b/src/capport/database.py @@ -183,7 +183,7 @@ class Database: if self._state_filename: nursery.start_soon(self._run_statefile) while True: - await trio.sleep(60) # sleep 15 minutes + await trio.sleep(300) # cleanup every 5 minutes _logger.debug("Running database cleanup") self._drop_outdated() if self._changed_since_last_cleanup: