Skip to content

Commit

Permalink
kill.kill_job: Get job data from paddles
Browse files Browse the repository at this point in the history
... if we can't get it from the filesystem. This is necessary because of the
teuthology archive's restricted permissions on teuthology.front.

Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Jul 19, 2024
1 parent 2d00246 commit 6b57c1b
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 6b57c1b

Please sign in to comment.