From 6c5d4bfa22afa8f4a5afc033c3574b9d23534e2c Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Wed, 11 Feb 2026 14:26:09 +0100 Subject: [PATCH] kill: let pids be None when call kill_process If we run teuthology-kill with -j option it may not know about job pid, let it pass None as pids argument for kill_process so it can figure it out on its own. Signed-off-by: Kyr Shatskyy --- teuthology/kill.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teuthology/kill.py b/teuthology/kill.py index 08abe0db4..1ac6050e5 100755 --- a/teuthology/kill.py +++ b/teuthology/kill.py @@ -78,7 +78,9 @@ def kill_job(run_name, job_id, owner=None, skip_unlock=False): "I could not figure out the owner of the requested job. " "Please pass --owner .") owner = job_info['owner'] - if kill_processes(run_name, [int(job_info.get('pid'))], job_info.get('job_id')): + pid = job_info.get('pid') + pids = pid and [int(pid)] + if kill_processes(run_name, pids, job_info.get('job_id')): return report.try_push_job_info( { -- 2.47.3