aura-engine merge requestshttps://gitlab.servus.at/sumpfralle/aura-engine/-/merge_requests2021-11-23T23:01:58+01:00https://gitlab.servus.at/sumpfralle/aura-engine/-/merge_requests/1refactor: use short-lived sessions when accessing the database2021-11-23T23:01:58+01:00Lars Kruserefactor: use short-lived sessions when accessing the databasePreviously the database connection ("DB.session") was established during
the startup of Aura Engine.
This was causing conflicts in the threaded execution environment (#75).
Now all sessions are acquired in a short-lived context:
with ...Previously the database connection ("DB.session") was established during
the startup of Aura Engine.
This was causing conflicts in the threaded execution environment (#75).
Now all sessions are acquired in a short-lived context:
with DB.Session() as session:
...
If database query performance is a real concern, then the session
contexts could be moved to a higher level.
Closes: #75https://gitlab.servus.at/sumpfralle/aura-engine/-/merge_requests/2Fix spelling issues2021-11-23T23:02:08+01:00Lars KruseFix spelling issuesThanks, codespell!Thanks, codespell!