Skip to content

Commit

Permalink
Merge pull request #1980 from ceph/kill-job-paddles-data
Browse files Browse the repository at this point in the history
kill.kill_job: Get job data from paddles
  • Loading branch information
zmc authored Jul 19, 2024
2 parents 328cf4c + 6b57c1b commit 6e2a3ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions teuthology/kill.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def kill_run(run_name, archive_base=None, owner=None, machine_type=None,
def kill_job(run_name, job_id, archive_base=None, owner=None, skip_unlock=False):
serializer = report.ResultsSerializer(archive_base)
job_info = serializer.job_info(run_name, job_id)
# If we can't read the filesystem, job_info will be nearly empty. Ask paddles:
if 'name' not in job_info:
job_info = report.ResultsReporter().get_jobs(run_name, job_id)
if not owner:
if 'owner' not in job_info:
raise RuntimeError(
Expand Down

0 comments on commit 6e2a3ae

Please sign in to comment.