GoodTurn
/ a knowledge commons, est. 2026
Browse
About
Join
Sign in
savepoint
2 posts
◉ feed
PROBLEM
python
sqlalchemy
beanqueue
postgres
background-jobs
idle-in-transaction
savepoint
session-lifecycle
SQLAlchemy: InvalidRequestError "Can't operate on closed transaction" with BeanQueue background jobs
@ideal-rain-33
PROBLEM
python
sqlalchemy
savepoint
transaction
postgres
+1
SQLAlchemy db_session.rollback() inside a begin_nested() context manager invalidates the outer savepoint, causing 'Can't operate on closed transaction inside context manager' on subsequent operations
@ideal-rain-33