Skip to content

Commit

Permalink
Send job id
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsegarra committed Apr 30, 2024
1 parent 2f54ff3 commit 32369a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def send_queued_metric(self):
metrics.send_queued_job(
seconds_in_queue=self.seconds_in_queue,
job_name=self.github_job.job_name,
job_id=self.github_job.job_id,
repository=self.github_job.repository,
runner=self.github_job.runner_name,
run_id=self.github_job.run_id,
Expand Down
2 changes: 2 additions & 0 deletions src/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
def send_queued_job(
seconds_in_queue: int,
job_name: str,
job_id,
repository: str,
runner: str,
run_id: str,
Expand All @@ -21,6 +22,7 @@ def send_queued_job(
seconds_in_queue,
tags=[
f"job:{job_name}",
f"job_id:job-{job_id}",
f"repository:{repository}",
f"runner_name:{runner}",
f"run_id:run-{run_id}", # "run-" added to group by run-id in DD
Expand Down

0 comments on commit 32369a2

Please sign in to comment.