“ResourceClosedError: The transaction is closed” error with celery beat and sqlalchemy + pyramid app
问题 I have a pyramid app called mainsite . The site works in a pretty asynchronous manner mostly through threads being launched from the view to carry out the backend operations. It connects to mysql with sqlalchemy and uses ZopeTransactionExtension for session management. So far the application has been running great. I need to run periodic jobs on it and it needs to use some of the same asynchronous functions that are being launched from the view. I used apscheduler but ran into issues with