From: Sandon Van Ness Date: Mon, 18 Aug 2014 18:24:46 +0000 (-0700) Subject: Print progress of reaidng job info when killing. X-Git-Tag: 1.1.0~1192^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64b9477270a1da37d39d7d0f4ece5275c87ade71;p=teuthology.git Print progress of reaidng job info when killing. Signed-off-by: Sandon Van Ness --- diff --git a/teuthology/kill.py b/teuthology/kill.py index c49a3a1e4..41f71ff86 100755 --- a/teuthology/kill.py +++ b/teuthology/kill.py @@ -84,9 +84,14 @@ def find_run_info(serializer, run_name): pids = [] run_info = {} job_info = {} - for (job_id, job_dir) in serializer.jobs_for_run(run_name).iteritems(): + job_num = 0 + jobs = serializer.jobs_for_run(run_name) + job_total = len(jobs) + for (job_id, job_dir) in jobs.iteritems(): if not os.path.isdir(job_dir): continue + job_num += 1 + beanstalk.print_progress(job_num, job_total, 'Reading Job: ') job_info = serializer.job_info(run_name, job_id) for key in job_info.keys(): if key in run_info_fields and key not in run_info: