[Checkins] SVN: gocept.bsquare/branches/pcardune-setup/ More options for configure:

Adam Groszer agroszer at gmail.com
Wed Apr 9 04:04:54 EDT 2008


Log message for revision 85180:
  More options for configure:
  - maxConcurrent: maximum number of concurrent builds
  

Changed:
  U   gocept.bsquare/branches/pcardune-setup/CHANGES.txt
  U   gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py

-=-
Modified: gocept.bsquare/branches/pcardune-setup/CHANGES.txt
===================================================================
--- gocept.bsquare/branches/pcardune-setup/CHANGES.txt	2008-04-09 07:57:14 UTC (rev 85179)
+++ gocept.bsquare/branches/pcardune-setup/CHANGES.txt	2008-04-09 08:04:54 UTC (rev 85180)
@@ -1,3 +1,8 @@
+0.1.0 2008-04-09
+----------------
+More options for configure:
+- maxConcurrent: maximum number of concurrent builds
+
 0.1.0 2008-04-08
 ----------------
 More options for configure:

Modified: gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py
===================================================================
--- gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py	2008-04-09 07:57:14 UTC (rev 85179)
+++ gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/master.py	2008-04-09 08:04:54 UTC (rev 85180)
@@ -51,7 +51,8 @@
 def configure(svn_url, http_port=8010, allowForce=False,
               svnuser = None, svnpasswd = None,
               pollinterval = 30, nightlyhour=3,
-              poller = None, makefactory = make_factory):
+              poller = None, makefactory = make_factory,
+              maxConcurrent = 2):
     """Creates a buildout master configuration.
 
     The configuration returned is almost functional. You just need to add
@@ -72,6 +73,7 @@
         * ``__default__`` is a special key, bsquare reverts to this factory
           first when there is none for a project
         * bsquare reverts to make_factory as last
+    * maxConcurrent: maximum number of concurrent builds
 
     """
     c = {}
@@ -87,7 +89,7 @@
     c['schedulers'] = []
     c['builders'] = []
 
-    slow_lock = locks.SlaveLock("cpu", maxCount=2)
+    slow_lock = locks.SlaveLock("cpu", maxCount=maxConcurrent)
 
     projects = open("project-list.cfg", "rb").readlines()
     projects = [x.strip() for x in projects]



More information about the Checkins mailing list