]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
When listing jobs, show their priority 602/head
authorZack Cerza <zack@redhat.com>
Mon, 24 Aug 2015 17:37:59 +0000 (11:37 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 24 Aug 2015 17:50:16 +0000 (11:50 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/beanstalk.py

index 1cd755eb9fc44ef7659affbb421eccbd88036638..f913deb1c4244191e310eee5d4f45d72cc7dac93 100644 (file)
@@ -106,10 +106,12 @@ class JobPrinter(JobProcessor):
     def process_job(self, job_id):
         job_config = self.jobs[job_id]['job_config']
         job_index = self.jobs[job_id]['index']
+        job_priority = job_config['priority']
         job_name = job_config['name']
         job_desc = job_config['description']
-        print 'Job: {i:>4} {job_name}/{job_id}'.format(
+        print 'Job: {i:>4} priority: {pri:>4} {job_name}/{job_id}'.format(
             i=job_index,
+            pri=job_priority,
             job_id=job_id,
             job_name=job_name,
             )