]> git.ipfire.org Git - pbs.git/commit
backend: Run periodic tasks as a separate task
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Jan 2025 11:43:18 +0000 (11:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Jan 2025 11:43:18 +0000 (11:43 +0000)
commit3fe02e5f6e0e88d2dd5441f5a7f847d35f2d20f9
tree2423b97ccbc58306a24d51bce7379b256a62d7a7
parent119843950ba42d3a8f26e20daf94e03bfc4793b4
backend: Run periodic tasks as a separate task

This is the easiest option to ensure that any changes will be committed
to the database in the end. When we run the callback in the same task,
we will never release the database session and therfore have no
automatic commit.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/__init__.py