mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
Print status every 30 seconds so that buildbot doesn't kill us.
TEST=Ran CHROME_ORIGIN=SERVER_SOURCE ./parallel_emerge chromeos-chrome BUG=none Review URL: http://codereview.chromium.org/2924008
This commit is contained in:
parent
debaa3d8cf
commit
37f50a00e6
@ -552,6 +552,7 @@ class EmergeQueue(object):
|
|||||||
Keep running so long as we have uninstalled packages in the
|
Keep running so long as we have uninstalled packages in the
|
||||||
dependency graph to merge.
|
dependency graph to merge.
|
||||||
"""
|
"""
|
||||||
|
secs = 0
|
||||||
while self._deps_map:
|
while self._deps_map:
|
||||||
# If we have packages that are ready, kick them off.
|
# If we have packages that are ready, kick them off.
|
||||||
if self._emerge_queue and len(self._jobs) < JOBS:
|
if self._emerge_queue and len(self._jobs) < JOBS:
|
||||||
@ -574,6 +575,10 @@ class EmergeQueue(object):
|
|||||||
# Wait a bit to see if maybe some jobs finish. You can't
|
# Wait a bit to see if maybe some jobs finish. You can't
|
||||||
# wait on a set of jobs in python, so we'll just poll.
|
# wait on a set of jobs in python, so we'll just poll.
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
secs += 1
|
||||||
|
if secs % 30 == 0:
|
||||||
|
# Print an update.
|
||||||
|
self._Status()
|
||||||
|
|
||||||
# Check here that we are actually waiting for something.
|
# Check here that we are actually waiting for something.
|
||||||
if (not self._emerge_queue and
|
if (not self._emerge_queue and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user