]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
Don't send any jobs to a disabled builder
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 21 Oct 2017 18:13:33 +0000 (19:13 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 21 Oct 2017 18:13:33 +0000 (19:13 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builders.py

index fef7b9fa90cbe67140172bd842de00e8ee8a8c10..942d546ec1556261a7a0d1419a8678914339a24a 100644 (file)
@@ -388,6 +388,10 @@ class Builder(base.DataObject):
                """
                        Returns the next job in line for this builder.
                """
+               # Don't send any jobs to disabled builders
+               if not self.enabled:
+                       return
+
                # Don't return anything if the builder has already too many jobs running
                if self.too_many_jobs:
                        return