[projects/pld-builder.new] Check machine load for prio (-1000,0), too.

arekm arekm at pld-linux.org
Wed Oct 30 14:04:36 CET 2013


commit 88a664e8ec67055f90843eb4eb53e52c69e9c7c9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Oct 30 14:04:32 2013 +0100

    Check machine load for prio (-1000,0), too.

 PLD_Builder/rpm_builder.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index b41517b..8dd949f 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -376,6 +376,8 @@ def main_for(builder):
     else:
         # be able to avoid locking with very low priority
         if req.priority > -1000:
+            # don't kill server
+            check_load()
             # allow only one build in given builder at once
             if not lock.lock("building-high-priority-rpm-for-%s" % config.builder, non_block = 1):
                 return
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/88a664e8ec67055f90843eb4eb53e52c69e9c7c9



More information about the pld-cvs-commit mailing list