summaryrefslogtreecommitdiff
path: root/morphlib/buildcontroller.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-24 14:17:37 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-24 14:17:37 +0000
commit10122174305ac5c6040212a8b526a77ee473577b (patch)
tree4e210315d429a36e7e93becac7b7bd04c28bb7b7 /morphlib/buildcontroller.py
parentd8f4dbdfe07df8cbb576e32f653c86190f07c392 (diff)
downloadmorph-10122174305ac5c6040212a8b526a77ee473577b.tar.gz
Use 0.1s as the default timeout in wait_for_worker(), instead of 100s.
Diffstat (limited to 'morphlib/buildcontroller.py')
-rw-r--r--morphlib/buildcontroller.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/buildcontroller.py b/morphlib/buildcontroller.py
index a53bea06..ea9719c0 100644
--- a/morphlib/buildcontroller.py
+++ b/morphlib/buildcontroller.py
@@ -47,12 +47,11 @@ class BuildController(object):
self.workers.add(worker)
self.mark_idle(worker)
- def wait_for_workers(self, need_idle=False, timeout=100):
+ def wait_for_workers(self, need_idle=False, timeout=0.1):
# first, check if any of the busy workers are finished
while all(not x.check_complete(timeout) for x in self.busy_workers):
# wait and repeat if they are all busy and we have no idle workers
if need_idle and len(self.idle_workers) == 0:
- self.msg('Waiting for idle workers...')
time.sleep(0.250)
else:
break