Only run this for jobs that have previously failed.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
"""
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()