Skip to content

Commit

Permalink
fix race condition in build wait timers for substantiated workers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Draves committed Jan 25, 2022
1 parent b003893 commit d191fa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion master/buildbot/worker/latent.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ def substantiate(self, wfb, build):
return defer.succeed(False)

if self.state == States.SUBSTANTIATED and self.conn is not None:
self._setBuildWaitTimer()
# Skip the wait timer if a build is already queued
if not self.building:
self._setBuildWaitTimer()
return defer.succeed(True)

if self.state in [States.SUBSTANTIATING,
Expand Down

0 comments on commit d191fa8

Please sign in to comment.