fix(backend): watch times stay in utc for naive telegram dates, webhook outbox survives a database hiccup at start

This commit is contained in:
hh committed 2026-10-19 02:57:27 +00:00
1 parent 2c56934133
commit 97ccfbbffd
3 files changed
+14 -5

No files matched your search

+4 -1
View File
@@ -155,11 +155,14 @@ class Outbox:
self._wake.set()
async def run(self, pool: asyncpg.Pool) -> None:
await webhooks_read.release_stuck(pool)
released = False
async with new_client() as client:
while True:
self._wake.clear()
try:
if not released:
await webhooks_read.release_stuck(pool)
released = True
await self._drain(pool, client)
delay = await self._delay(pool)
except Exception: