From dd9c21b431848cd2457a079f6a4b23f6f065adf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Thu, 7 Apr 2022 17:26:37 +0200 Subject: [PATCH] increase cleanup time to 5 minutes --- src/capport/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: