Skip to content

SFM Worker session handling

Calling the sessionmaker session factory multiple times within an application is error-prone (as stated by the SQLAlchemy manual).

Make sure that sessions are handled in a thread-safe manner.