mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2025-03-03 16:23:57 +00:00
allow cache cleanup thread to be stopped on shutdown
This commit is contained in:
parent
ac0cddd65a
commit
dec378fbfc
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ class CacheCleanupThread(Thread):
|
|||
|
||||
def run(self) -> None:
|
||||
while self.running.is_set():
|
||||
time.sleep(3600)
|
||||
self.running.wait(3600)
|
||||
logging.verbose("Removing old cache items")
|
||||
self.app.cache.delete_old(14)
|
||||
|
||||
|
|
Loading…
Reference in a new issue