[Buildbot-commits] buildbot/docs buildbot.texinfo,1.115,1.116

Brian Warner warner at users.sourceforge.net
Tue Aug 7 23:41:08 UTC 2007


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

Modified Files:
	buildbot.texinfo 
Log Message:
[project @ add max_builds= to BuildSlave, thanks to Dustin Mitchell. Closes #48.]

Original author: warner at lothar.com
Date: 2007-08-07 23:40:12+00:00

Index: buildbot.texinfo
===================================================================
RCS file: /cvsroot/buildbot/buildbot/docs/buildbot.texinfo,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- buildbot.texinfo	7 Aug 2007 19:21:40 -0000	1.115
+++ buildbot.texinfo	7 Aug 2007 23:41:06 -0000	1.116
@@ -2260,12 +2260,20 @@
 will be rejected when they attempt to connect, and a message
 describing the problem will be put in the log file (see @ref{Logfiles}).
 
+The @code{BuildSlave} constructor can take an optional
+ at code{max_builds} parameter to limit the number of builds that it will
+execute simultaneously:
+
+ at example
+from buildbot.buildslave import BuildSlave
+c['slaves'] = [BuildSlave("bot-linux", "linuxpassword", max_builds=2)]
+ at end example
+
 Historical note: in buildbot-0.7.5 and earlier, the @code{c['bots']}
 key was used instead, and it took a list of (name, password) tuples.
 This key is accepted for backwards compatibility, but is deprecated as
 of 0.7.6 and will go away in some future release.
 
-
 @node Defining Builders, Defining Status Targets, Buildslave Specifiers, Configuration
 @section Defining Builders
 





More information about the Commits mailing list