]> git.ipfire.org Git - people/jschlag/pbs.git/blobdiff - src/buildservice/builders.py
Don't send any jobs to a disabled builder
[people/jschlag/pbs.git] / 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