stursdsafdaf commented on issue #49489:
URL: https://github.com/apache/airflow/issues/49489#issuecomment-2817555719

   I recently tested upgrading airflow 2.9.3 to 2.10.5 and found this problem. 
At the same time, I think that when a task is rescheduled multiple times and 
does not fail, the logs should be aggregated into one file instead of 
generating a log file for each rescheduler.
   
   This may be because try_number will increase in the rescheduler state. There 
is this configuration in airflow.cfg
   
   `log_filename_template = 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`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to