From: Michael Tremer Date: Wed, 22 Jan 2025 18:01:37 +0000 (+0000) Subject: builds: Asynchronously create jobs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67f75a95d650fc1a3b14ec831df475500e9022a0;p=pbs.git builds: Asynchronously create jobs Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index 4f1098bb..3e1b2a30 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -558,13 +558,13 @@ class Build(database.Base, database.BackendMixin, database.SoftDeleteMixin): yield job - def _create_jobs(self, **kwargs): + async def _create_jobs(self, **kwargs): """ Called after a build has been created and creates all jobs """ # Create the jobs for arch in self.arches: - self.backend.jobs.create(self, arch, **kwargs) + await self.backend.jobs.create(self, arch, **kwargs) async def _job_finished(self, job): """