From: Michael Tremer Date: Tue, 25 Jul 2023 14:10:02 +0000 (+0000) Subject: repos: Run fewer installchecks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9991d2f8a143016f924df607798ea6cf130355de;p=pbs.git repos: Run fewer installchecks Only run this for jobs that have previously failed. Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/repository.py b/src/buildservice/repository.py index e1b0d237..e8829d6d 100644 --- a/src/buildservice/repository.py +++ b/src/buildservice/repository.py @@ -880,8 +880,12 @@ class Repository(base.DataObject): """ log.debug("%s: Relaunching pending jobs" % self) + # Find all jobs that previously failed their installation check + jobs = [job for job in self.pending_jobs if job.is_pending(installcheck=False)] + # Perform installcheck on all pending jobs - await self.installcheck(self.pending_jobs) + if jobs: + await self.installcheck(jobs) # Request dispatch await self.backend.jobs.queue.dispatch()