From: Shraddha Agrawal Date: Sat, 22 Aug 2020 13:43:24 +0000 (+0530) Subject: report run time and wait time of job X-Git-Tag: 1.1.0~17^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ef2de46f5e0e830e1aa6b15185849ff33e79ed15;p=teuthology.git 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 --- diff --git a/teuthology/dispatcher/__init__.py b/teuthology/dispatcher/__init__.py index 55efbf1d8..3e03a2b8a 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)