From 3454b5eca1e510f351dc33534f0d3dbb966545f0 Mon Sep 17 00:00:00 2001 From: Sriraj Dheeraj TURAGA Date: Tue, 1 Oct 2024 16:40:56 -0400 Subject: [PATCH] Use ti.try_number as default for log template. Fix apache/airflow#4254 --- airflow/config_templates/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/config_templates/config.yml b/airflow/config_templates/config.yml index a6d40a48c039e..7d92b477aab1c 100644 --- a/airflow/config_templates/config.yml +++ b/airflow/config_templates/config.yml @@ -927,7 +927,7 @@ logging: is_template: true default: "dag_id={{ ti.dag_id }}/run_id={{ ti.run_id }}/task_id={{ ti.task_id }}/\ {%% if ti.map_index >= 0 %%}map_index={{ ti.map_index }}/{%% endif %%}\ - attempt={{ try_number }}.log" + attempt={{ ti.try_number }}.log" log_processor_filename_template: description: | Formatting for how airflow generates file names for log