You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/14 15:28:40 UTC
[GitHub] [airflow] kaxil commented on a change in pull request #21495: Change default log filename template to include map_index
kaxil commented on a change in pull request #21495:
URL: https://github.com/apache/airflow/pull/21495#discussion_r805959617
##########
File path: airflow/config_templates/config.yml
##########
@@ -598,7 +598,9 @@
version_added: 2.0.0
type: string
example: ~
- default: "{{{{ ti.dag_id }}}}/{{{{ ti.task_id }}}}/{{{{ ts }}}}/{{{{ try_number }}}}.log"
+ default: "dag_id={{{{ ti.dag_id }}}}/run_id={{{{ ti.run_id }}}}/task_id={{{{ ti.task_id }}}}/\
+ {{%% if ti.map_index != -1 %%}}map_index={{{{ ti.map_index }}}}/{{%% endif %%}}\
Review comment:
worth updating description key too so users are aware about map_index and https://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/logging-tasks.html too
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org