]> git.ipfire.org Git - pbs.git/commitdiff
jobs: Fix indefinite loop in dispatch function
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Jul 2023 09:24:46 +0000 (09:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Jul 2023 09:25:00 +0000 (09:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/jobs.py

index d0bb3a2cc0ab9adf09658f00ec0c588e8acce5fd..d47001b68bd1e67c5cd09d294f92b95ffcf3518c 100644 (file)
@@ -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