Package buildbot :: Package process :: Module botmaster :: Class BuildRequestDistributor
[frames] | no frames]

Class BuildRequestDistributor

source code

twisted.application.service.Service --+
                                      |
                                     BuildRequestDistributor

Special-purpose class to handle distributing build requests to builders by calling their maybeStartBuild method.

This takes account of the prioritizeBuilders configuration, and is highly re-entrant; that is, if a new build request arrives while builders are still working on the previous build request, then this class will correctly re-prioritize invocations of builders' maybeStartBuild methods.

Instance Methods
 
__init__(self, botmaster) source code
 
stopService(self) source code
 
maybeStartBuildsOn(*args, **kwargs)
Try to start any builds that can be started right now.
source code

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, __provides__, disownServiceParent, privilegedStartService, setName, setServiceParent, startService

Class Variables

Inherited from twisted.application.service.Service: __implemented__, name, parent, running

Method Details

stopService(self)

source code 
Overrides: twisted.application.service.Service.stopService

maybeStartBuildsOn(*args, **kwargs)

source code 

Try to start any builds that can be started right now. This function returns immediately, and promises to trigger those builders eventually.

Parameters:
  • new_builders - names of new builders that should be given the opportunity to check for new requests.
Decorators:
  • @defer.deferredGenerator