From ef2de46f5e0e830e1aa6b15185849ff33e79ed15 Mon Sep 17 00:00:00 2001 From: Shraddha Agrawal Date: Sat, 22 Aug 2020 19:13:24 +0530 Subject: [PATCH] report run time and wait time of job This commit adds the start, wait and run time of a job in h:m:s format. This is enabled by reporting the job status as running before wait status. Signed-off-by: Shraddha Agrawal --- teuthology/dispatcher/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/dispatcher/__init__.py b/teuthology/dispatcher/__init__.py index 55efbf1d8b..3e03a2b8ae 100644 --- a/teuthology/dispatcher/__init__.py +++ b/teuthology/dispatcher/__init__.py @@ -8,6 +8,7 @@ from datetime import datetime from teuthology import setup_log_file, install_except_hook from teuthology import beanstalk +from teuthology import report from teuthology.config import config as teuth_config from teuthology.repo_utils import fetch_qa_suite, fetch_teuthology from teuthology.lock.ops import block_and_lock_machines @@ -158,6 +159,7 @@ def main(args): def lock_machines(job_config): + report.try_push_job_info(job_config, dict(status='running')) fake_ctx = supervisor.create_fake_context(job_config, block=True) block_and_lock_machines(fake_ctx, len(job_config['roles']), job_config['machine_type'], reimage=False) -- 2.39.5