fix(backend): watch times stay in utc for naive telegram dates, webhook outbox survives a database hiccup at start
This commit is contained in:
1 parent
2c56934133
commit
97ccfbbffd
3 files changed
+14
-5
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user