Run initial retention checks regardless of host uptime

This commit is contained in:
Pigway
2026-10-10 01:35:32 +08:00
parent 7d10d5b601
commit 4fdb7a4407
4 changed files with 24 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ class CloudLibrary:
return True
def sweep(self):
if time.monotonic() - self.checked < 60:
if self.checked and time.monotonic() - self.checked < 60:
return
self.checked = time.monotonic()
with self.service.lock:
+1 -1
View File
@@ -90,7 +90,7 @@ class Retention:
)
def sweep(self):
if time.monotonic() - self.checked < 3600:
if self.checked and time.monotonic() - self.checked < 3600:
return
self.checked = time.monotonic()
with self.service.lock: