This commit is contained in:
2026-07-09 02:52:54 +02:00
parent 818568c609
commit 48bb6c2ec2
95 changed files with 6115 additions and 267 deletions
+10
View File
@@ -64,6 +64,16 @@ class BackgroundQueue:
if inline:
self._inline += 1
logger.warning("background task %s failed: %s", getattr(fn, "__name__", fn), exc)
finally:
self._release_db_lock()
def _release_db_lock(self) -> None:
try:
from devplacepy.database import refresh_snapshot
refresh_snapshot()
except Exception as exc:
logger.warning("background queue could not release db lock: %s", exc)
async def start(self) -> None:
if self.running: