From 159f89c32c077db935d4126efa51683648509398 Mon Sep 17 00:00:00 2001 From: dominik003 Date: Tue, 5 Dec 2023 14:07:40 +0100 Subject: [PATCH] fix: Ensure that loki labels are strings --- .../projects/toolmodels/backups/runs/interface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/capellacollab/projects/toolmodels/backups/runs/interface.py b/backend/capellacollab/projects/toolmodels/backups/runs/interface.py index 1f227250d..9dd7969b5 100644 --- a/backend/capellacollab/projects/toolmodels/backups/runs/interface.py +++ b/backend/capellacollab/projects/toolmodels/backups/runs/interface.py @@ -144,8 +144,8 @@ def _fetch_events_of_job_run(run: models.DatabasePipelineRun): ] labels = { - "job_name": run.reference_id, - "pipeline_run_id": run.id, + "job_name": run.reference_id or "", + "pipeline_run_id": str(run.id), "log_type": "events", } @@ -178,8 +178,8 @@ def _fetch_logs_of_job_runs(run: models.DatabasePipelineRun): ] labels = { - "job_name": run.reference_id, - "pipeline_run_id": run.id, + "job_name": run.reference_id or "", + "pipeline_run_id": str(run.id), "log_type": "logs", }