Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: parallel_emerge

Issue 2924008: Print status every 30 seconds so that buildbot doesn't kill us. (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: parallel_emerge
diff --git a/parallel_emerge b/parallel_emerge
index dbcdb7a6cbcc59089c2b6144a365b54d253374dd..9b0e15acef2b254da543df946b1f5582ac1335ae 100755
--- a/parallel_emerge
+++ b/parallel_emerge
@@ -552,6 +552,7 @@ class EmergeQueue(object):
Keep running so long as we have uninstalled packages in the
dependency graph to merge.
"""
+ secs = 0
while self._deps_map:
# If we have packages that are ready, kick them off.
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 on a set of jobs in python, so we'll just poll.
time.sleep(1)
+ secs += 1
+ if secs % 30 == 0:
+ # Print an update.
+ self._Status()
# Check here that we are actually waiting for something.
if (not self._emerge_queue and
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698