claude-memory/graph/problems/paper-dynasty-bot-freeze-from-duplicate-x-check-interaction-711ea5.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

1.0 KiB

id type title tags importance confidence created updated
711ea568-414d-4a00-90cc-45abc6673a14 problem Paper Dynasty bot freeze from duplicate X-Check interaction submissions
paper-dynasty
discord-bot
sqlalchemy
race-condition
x-check
concurrency
database
deadlock
0.9 0.8 2026-02-02T20:04:09.989914+00:00 2026-02-02T20:04:09.989914+00:00

Bot event loop freezes when user double-submits X-Check corrections (clicking twice due to phone lag). Creates race condition where two concurrent SQLAlchemy transactions try to update same game Play record, causing deadlock. Always occurs 'in middle of SQLAlchemy interaction'. User Kalin reported double-clicking X-Check result correction due to phone lag on 2026-02-02 at ~12:26 PM CST, bot crashed immediately after second click. Last log: 'kyounggun says the result was wrong' followed by 'Asking if there was a hit'. Bot remained frozen for 1.5 hours until manual restart. Container showed healthy but event loop blocked, health server timeout after 120s.