Skip to content

Commit

Permalink
Merge pull request #163 from Synthetixio/fix/airflow-discord-log
Browse files Browse the repository at this point in the history
Scheduler - Fix task log path
  • Loading branch information
Tburm authored Jan 8, 2025
2 parents 1c31d70 + 64ce55d commit 2cccdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/dags/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2cccdb5

Please sign in to comment.