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 <kyrylo.shatskyy@clyso.com>
"I could not figure out the owner of the requested job. "
"Please pass --owner <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(
{