]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
When deleting jobs, also delete them from paddles
authorZack Cerza <zack@cerza.org>
Tue, 15 Apr 2014 15:40:39 +0000 (10:40 -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 e37980f482cee350770f0093d545b86018874e84..df20f7f6907efb932626408dba74b1e151453338 100644 (file)
@@ -34,6 +34,9 @@ def main(ctx):
                 print 'job {jid} is not in the queue'.format(jid=job_id)
             else:
                 job.delete()
+                name = yaml.safe_load(job.body).get('name')
+                if name:
+                    report.try_delete_jobs(name, job_id)
         return
 
     # strip out targets; the worker will allocate new ones when we run