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 2020/10/21 13:07:59 UTC
[GitHub] [airflow] mjpieters commented on issue #11717: All task logging goes to the log for try_number 1
mjpieters commented on issue #11717:
URL: https://github.com/apache/airflow/issues/11717#issuecomment-713555948
I can confirm that changing
https://github.com/apache/airflow/blob/172820db4d2009dd26fa8aef4a864fb8a3d7e78d/airflow/cli/commands/task_command.py#L172-L174
to
```
task = dag.get_task(task_id=args.task_id)
ti = TaskInstance(task, args.execution_date)
ti.refresh_from_db()
ti.init_run_context(raw=args.raw)
```
fixes this issue, but I don't know if the `refresh_..` call should be integrated into `init_run_context()` perhaps.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org