From 64ce55d8cc7b2442f679fbf3176800b5e818e4c5 Mon Sep 17 00:00:00 2001 From: marcus-snx Date: Tue, 7 Jan 2025 00:11:25 +0200 Subject: [PATCH] Fix path --- scheduler/dags/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/dags/utils.py b/scheduler/dags/utils.py index 1016de60..e5f273f7 100644 --- a/scheduler/dags/utils.py +++ b/scheduler/dags/utils.py @@ -43,7 +43,7 @@ def transformer_callback(context): send_discord_alert(task_logs_url) # try to get dbt output - log_path = f"./logs/dag_id={ti.dag_id}/run_id={ti.run_id}/task_id={ti.task_id}/attempt={ti.try_number-1}.log" + log_path = f"/opt/airflow/logs/dag_id={ti.dag_id}/run_id={ti.run_id}/task_id={ti.task_id}/attempt={ti.try_number-1}.log" try: with open(log_path, "r") as log_file: