Skip to content

Commit f3df5a3

Browse files
authored
Merge pull request #2134 from ceph/kill-pid
run: Send PID to paddles
2 parents 3b5f1fc + aad2448 commit f3df5a3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

teuthology/run.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,13 @@ def main(args):
342342
set_up_logging(verbose, archive)
343343

344344
write_initial_metadata(archive, config, name, description, owner)
345-
report.try_push_job_info(config, dict(status='running'))
345+
report.try_push_job_info(
346+
config,
347+
{
348+
'status': 'running',
349+
'pid': os.getpid(),
350+
},
351+
)
346352

347353
machine_type = get_machine_type(machine_type, config)
348354
args["--machine-type"] = machine_type

teuthology/test/test_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import pytest
23
import docopt
34

@@ -193,7 +194,7 @@ def test_main(self, m_report_outcome, m_run_tasks, m_fetch_tasks_if_needed, m_ge
193194
"the_description",
194195
"the_owner"
195196
)
196-
m_try_push_job_info.assert_called_with(config, dict(status='running'))
197+
m_try_push_job_info.assert_called_with(config, dict(status='running', pid=os.getpid()))
197198
m_get_machine_type.assert_called_with(None, config)
198199
m_get_summary.assert_called_with("the_owner", "the_description")
199200
m_get_initial_tasks.assert_called_with(True, config, "machine_type")

0 commit comments

Comments
 (0)