]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Submit queued jobs to paddles
authorZack Cerza <zack@cerza.org>
Tue, 15 Apr 2014 00:46:07 +0000 (19:46 -0500)
committerZack Cerza <zack@cerza.org>
Thu, 17 Apr 2014 17:27:41 +0000 (12:27 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/schedule.py

index 870c72c96d8c3eb579795f77cb13aeaacaf1303a..e37980f482cee350770f0093d545b86018874e84 100644 (file)
@@ -3,6 +3,7 @@ import yaml
 import teuthology.beanstalk
 from teuthology.misc import get_user
 from teuthology.misc import read_config
+from teuthology import report
 
 
 def main(ctx):
@@ -64,4 +65,7 @@ def main(ctx):
         )
         print 'Job scheduled with name {name} and ID {jid}'.format(
             name=ctx.name, jid=jid)
+        job_config['job_id'] = str(jid)
+        # Let paddles know the job is queued
+        report.try_push_job_info(job_config, dict(status='queued'))
         num -= 1