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: [email protected]
