Skip to content

Conversation

@mjpieters
Copy link
Contributor

The run context (logging context) accesses task instance attributes via the log_filename_template configuration.

Closes #11717.

The run context (logging context) accesses task instance attributes via the log_filename_template configuration. See apache#11717.

task = dag.get_task(task_id=args.task_id)
ti = TaskInstance(task, args.execution_date)
ti.refresh_from_db()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably this will increase number of queries, so we may need to adjust tests

@ashb ashb merged commit 0eaa688 into apache:master Oct 22, 2020
@mjpieters mjpieters deleted the 11717_fix_task_run_logging branch October 23, 2020 11:20
michalmisiewicz pushed a commit to michalmisiewicz/airflow that referenced this pull request Oct 30, 2020
The run context (logging context) accesses task instance attributes via the log_filename_template configuration.

Fixes apache#11717.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All task logging goes to the log for try_number 1

4 participants