]> git.ipfire.org Git - pbs.git/commit
database: Move all sorts of database operations into the main thread
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Jul 2023 13:31:31 +0000 (13:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Jul 2023 13:31:31 +0000 (13:31 +0000)
commita1a0576dfb3c8b5e8d6cb339a2b4555695b455b5
treea004f86903bc1eeb151cd67d28868d60e8a0fe07
parent3e6dbe6c42499bb089e00b8109f17dfc8cd3ac61
database: Move all sorts of database operations into the main thread

We no longer support any database operations from any other thread than
the main thread (because otherwise we cannot figure out which Task we
are running in).

For that reason, we have to split a couple of tasks off at different
times and send blocking operations to an executor thread later.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/aws.py
src/buildservice/jobs.py
src/buildservice/keys.py
src/buildservice/releasemonitoring.py
src/buildservice/repository.py