From: Kyr Shatskyy Date: Wed, 11 Feb 2026 13:26:09 +0000 (+0100) Subject: kill: let pids be None when call kill_process X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6c5d4bfa22afa8f4a5afc033c3574b9d23534e2c;p=teuthology.git 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 --- 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( {