From c6f7ab1e7985ba6b529db8a321c3a46b16cbd256 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 14 May 2025 13:04:28 +0200 Subject: [PATCH] ledger watchdog: disable the abort queue for now (#754) --- cashu/core/settings.py | 2 +- cashu/mint/watchdog.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cashu/core/settings.py b/cashu/core/settings.py index a97069d..26f078c 100644 --- a/cashu/core/settings.py +++ b/cashu/core/settings.py @@ -78,7 +78,7 @@ class MintWatchdogSettings(MintSettings): title="Balance watchdog", description="The watchdog shuts down the mint if the balance of the mint and the backend do not match.", ) - mint_watchdog_balance_check_interval_seconds: float = Field(default=0.1) + mint_watchdog_balance_check_interval_seconds: float = Field(default=60) mint_watchdog_ignore_mismatch: bool = Field( default=False, description="Ignore watchdog errors and continue running. Use this to recover from a watchdog error.", diff --git a/cashu/mint/watchdog.py b/cashu/mint/watchdog.py index 5059c26..450cc1a 100644 --- a/cashu/mint/watchdog.py +++ b/cashu/mint/watchdog.py @@ -42,7 +42,8 @@ class LedgerWatchdog(SupportsDb, SupportsBackends): tasks.append( asyncio.create_task(self.dispatch_backend_checker(unit, backend)) ) - tasks.append(asyncio.create_task(self.monitor_abort_queue())) + # We disable the abort queue for now + # tasks.append(asyncio.create_task(self.monitor_abort_queue())) return tasks async def monitor_abort_queue(self):