From aad24480755a6805ea71be29a7341b98a4728ce8 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 20 Jan 2026 15:54:27 -0700 Subject: [PATCH] run: Send PID to paddles This is a follow-up to bf0242c5599c861d855d13925a565cf437b7a41b Signed-off-by: Zack Cerza --- teuthology/run.py | 8 +++++++- teuthology/test/test_run.py | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/teuthology/run.py b/teuthology/run.py index 383a74c93..be5c2029a 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -342,7 +342,13 @@ def main(args): set_up_logging(verbose, archive) write_initial_metadata(archive, config, name, description, owner) - report.try_push_job_info(config, dict(status='running')) + report.try_push_job_info( + config, + { + 'status': 'running', + 'pid': os.getpid(), + }, + ) machine_type = get_machine_type(machine_type, config) args["--machine-type"] = machine_type diff --git a/teuthology/test/test_run.py b/teuthology/test/test_run.py index fbb74403a..50a9e2258 100644 --- a/teuthology/test/test_run.py +++ b/teuthology/test/test_run.py @@ -1,3 +1,4 @@ +import os import pytest import docopt @@ -193,7 +194,7 @@ class TestRun(object): "the_description", "the_owner" ) - m_try_push_job_info.assert_called_with(config, dict(status='running')) + m_try_push_job_info.assert_called_with(config, dict(status='running', pid=os.getpid())) m_get_machine_type.assert_called_with(None, config) m_get_summary.assert_called_with("the_owner", "the_description") m_get_initial_tasks.assert_called_with(True, config, "machine_type") -- 2.47.3