From: Michael Tremer Date: Wed, 22 Jan 2025 18:57:01 +0000 (+0000) Subject: repos: Correctly wrap transactions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c88ecb937157c1cc730107b12d1e2c3cd54c0a4;p=pbs.git repos: Correctly wrap transactions Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/repos.py b/src/buildservice/repos.py index ce0ec098..3da418f3 100644 --- a/src/buildservice/repos.py +++ b/src/buildservice/repos.py @@ -853,7 +853,7 @@ class Repo(database.Base, database.BackendMixin, database.SoftDeleteMixin): ) # Perform the check for the job - with self.db.transaction(): + async with await self.db.transaction(): if await job._installcheck(p): success = True