From e1053bdf25578b80383299c5899f7109aff3591d Mon Sep 17 00:00:00 2001 From: Gerard Segarra Date: Fri, 26 Apr 2024 14:50:20 +0200 Subject: [PATCH] Add repo --- src/app.py | 1 + src/job_processor.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app.py b/src/app.py index 5706063..1e5011f 100644 --- a/src/app.py +++ b/src/app.py @@ -159,6 +159,7 @@ def monitor_queued_jobs(): tags=[ "environment:dev", f"job:{run['job_name']}", + f"repository:{run['repository']}", f"runner_name:{run['runner_name']}", f"public:{run['is_public']}" ] diff --git a/src/job_processor.py b/src/job_processor.py index b9b8888..47cfb45 100644 --- a/src/job_processor.py +++ b/src/job_processor.py @@ -12,6 +12,7 @@ def extract_jobs_metrics_from_data(jobs_data: dict, queued_node_ids: dict): "action": "monitor_queued", "job_id": job["id"], "job_name": job["name"], + "repository": job["repository"], "is_public": queued_node_ids[job["id"]].runner_public, "runner_name": queued_node_ids[job["id"]].runner_name, "seconds_in_queue": (now - started_at).total_seconds(),