From: Zack Cerza Date: Thu, 23 Mar 2023 18:22:15 +0000 (-0600) Subject: sueprvisor: Do not instrument certain job times X-Git-Tag: 1.2.0~117^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1826%2Fhead;p=teuthology.git sueprvisor: Do not instrument certain job times This should only really include first/last-in-suite jobs. Signed-off-by: Zack Cerza --- diff --git a/teuthology/dispatcher/supervisor.py b/teuthology/dispatcher/supervisor.py index 595193c85..874f0ce75 100644 --- a/teuthology/dispatcher/supervisor.py +++ b/teuthology/dispatcher/supervisor.py @@ -60,7 +60,16 @@ def main(args): yaml.safe_dump(job_config, f, default_flow_style=False) try: - with exporter.JobTime.labels(job_config["suite"]).time(): + suite = job_config.get("suite") + if suite: + with exporter.JobTime.labels(suite).time(): + return run_job( + job_config, + teuth_bin_path, + archive_dir, + verbose + ) + else: return run_job( job_config, teuth_bin_path,