Open alexcottner opened 3 months ago
This is happening intermittently, but it seems like we can trigger it (someitmes) with the __heartbeat__
endpoint for testing. It looks like the issue isn't in kinto-emailer but is a problem with how we're handling the database sessions. It seems like some sessions are being left in unexpected states.
Trying to write up a test that can produce this reliably.
This can also occur when database maintenance is performed. It seems like some database sessions get stuck in an unexpected state, but don't get dropped.
We're seeing an error from send_notification/get_messages
Error: ValueError("expected txn status 'Active' or 'Doomed', but it's 'Committed'") Message: Unable to notify Stack trace: