From: Michael Tremer Date: Fri, 28 Jul 2023 09:24:46 +0000 (+0000) Subject: jobs: Fix indefinite loop in dispatch function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63896c0970e1d3d54aabe82fc8a5ce3038de1095;p=pbs.git jobs: Fix indefinite loop in dispatch function Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/jobs.py b/src/buildservice/jobs.py index d0bb3a2c..d47001b6 100644 --- a/src/buildservice/jobs.py +++ b/src/buildservice/jobs.py @@ -250,6 +250,11 @@ class Queue(base.Object): # Once we dispatched a job, we are done break + # If not suitable jobs could be found for this builder, + # we skip the full check below + else: + continue + # Ignore if the builder suddenly went away except BuilderNotOnlineError: continue