feat(*): make message processing sequential

This commit is contained in:
h
2026-05-04 22:30:40 +02:00
parent d8a5fde5f1
commit cfa592e85b
9 changed files with 413 additions and 197 deletions
+11
View File
@@ -0,0 +1,11 @@
import asyncio
_locks: dict[str, asyncio.Lock] = {}
def get_user_lock(convex_user_id: str) -> asyncio.Lock:
lock = _locks.get(convex_user_id)
if lock is None:
lock = asyncio.Lock()
_locks[convex_user_id] = lock
return lock