]> git.ipfire.org Git - dbl.git/commit
Make the entire application async
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 Feb 2026 15:40:03 +0000 (15:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 Feb 2026 15:40:03 +0000 (15:40 +0000)
commitd2b7de9db18058f04e6154dcaa2278d919c94cd9
treef89a4e81b2e5ffa42b9b5160d3a3b8546fc30c29
parent01705122d2c02560d37564082f7bcdb7d65710ab
Make the entire application async

This was needed because we seem to have some issues with the API
starting the next request or trying to access the database after the
session has been closed. Instead we will now have a single database
session per task which can be managed easier and will only be closed
after the entire task has completed.

As another benefit, we are now able to run many requests simultaneously.
So far this has not been a big bottleneck, but some operations (like
closing a report) can take a moment and would therefore have been
blocking other requests.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
13 files changed:
src/dbl/__init__.py
src/dbl/api/__init__.py
src/dbl/api/lists.py
src/dbl/api/middlewares.py
src/dbl/api/reports.py
src/dbl/auth.py
src/dbl/database.py
src/dbl/domains.py
src/dbl/exporters.py
src/dbl/lists.py
src/dbl/reports.py
src/dbl/sources.py
src/scripts/dbl.in