[Buildbot-commits] buildbot/buildbot buildslave.py,1.1,1.2

Brian Warner warner at users.sourceforge.net
Tue Aug 7 19:48:56 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28164/buildbot

Modified Files:
	buildslave.py 
Log Message:
[project @ add BuildSlave.canStartBuild, use it to decide if slaves can be used]

Original author: warner at lothar.com
Date: 2007-08-07 19:48:24+00:00

Index: buildslave.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/buildslave.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- buildslave.py	7 Aug 2007 19:21:39 -0000	1.1
+++ buildslave.py	7 Aug 2007 19:48:54 -0000	1.2
@@ -221,3 +221,11 @@
     def perspective_keepalive(self):
         pass
 
+    def canStartBuild(self):
+        """
+        I am called when a build is requested to see if this buildslave
+        can start a build.  This function can be used to limit overall
+        concurrency on the buildslave.
+        """
+        return True
+





More information about the Commits mailing list