ephraimbuddy commented on pull request #18499:
URL: https://github.com/apache/airflow/pull/18499#issuecomment-927699124


   > @ashb, I applied this fix #18503 and it worked.
   > I also applied a fix where I attached dag_run to this ti:
   > 
https://github.com/apache/airflow/blob/2643345e4b72064c605e42901a3dc531e6aa2f4e/airflow/cli/commands/task_command.py#L88
   > 
   > 
   > `ti.dag_run=dag_run` did not work but `ti.dag_run = ti.get_dagrun()` 
worked.
   > I would go with #18503. What do you suggest?
   
   I found that there's an eager loading option in the relationship(used for an 
attribute that's guaranteed to have an element) and that reduced the query!


-- 
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