Skip to content

Commit

Permalink
Merge pull request #1831 from djmitche/bug3330
Browse files Browse the repository at this point in the history
maybeStartBuildsForSlave after insubstantiating
  • Loading branch information
Mikhail Sobolev committed Aug 30, 2015
2 parents 8655792 + 60c3c01 commit 7be0a1c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions master/buildbot/buildslave/base.py
Expand Up @@ -733,7 +733,8 @@ def _substantiation_failed(self, failure):
self.substantiation_deferred = None
self.substantiation_build = None
d.errback(failure)
self.insubstantiate()
d = self.insubstantiate()
d.addErrback(log.err, 'while insubstantiating')
# notify people, but only if we're still in the config
if not self.parent or not self.notify_on_missing:
return
Expand Down Expand Up @@ -770,7 +771,12 @@ def buildFinished(self, sb):
self.building.remove(sb.builder_name)
if not self.building:
if self.build_wait_timeout == 0:
self.insubstantiate()
d = self.insubstantiate()
# try starting builds for this slave after insubstantiating;
# this will cause the slave to re-substantiate immediately if
# there are pending build requests.
d.addCallback(lambda _:
self.botmaster.maybeStartBuildsForSlave(self.slavename))
else:
self._setBuildWaitTimer()

Expand Down

0 comments on commit 7be0a1c

Please sign in to comment.