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 2021/12/13 03:25:00 UTC
[GitHub] [airflow] PrincipalsOffice opened a new issue #20248: "TaskInstance.dag_run" is joined twice in Dag.get_task_instances()
PrincipalsOffice opened a new issue #20248:
URL: https://github.com/apache/airflow/issues/20248
### Apache Airflow version
2.2.2 (latest released)
### What happened
Calling the `Dag.get_task_instances()` method would result in a sqlalchemy warning `sqlalchemy.exc.SAWarning: Pathed join target TaskInstance.dag_run has already been joined to; skipping`. This is because the query is trying to `.join(TaskInstance.dag_run)` twice. Once here https://github.com/apache/airflow/blob/main/airflow/models/dag.py#L1373 then again here https://github.com/apache/airflow/blob/main/airflow/models/dag.py#L1452
### What you expected to happen
No warning.
### How to reproduce
_No response_
### Operating System
Debian GNU/Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other Docker-based deployment
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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
[GitHub] [airflow] potiuk commented on issue #20248: "TaskInstance.dag_run" is joined twice in Dag.get_task_instances()
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #20248:
URL: https://github.com/apache/airflow/issues/20248#issuecomment-1002284426
Assigned
--
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
[GitHub] [airflow] hubert-pietron commented on issue #20248: "TaskInstance.dag_run" is joined twice in Dag.get_task_instances()
Posted by GitBox <gi...@apache.org>.
hubert-pietron commented on issue #20248:
URL: https://github.com/apache/airflow/issues/20248#issuecomment-1001005342
Hi. I would like to work on that. Can you assign it to me?
--
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
[GitHub] [airflow] potiuk commented on issue #20248: "TaskInstance.dag_run" is joined twice in Dag.get_task_instances()
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #20248:
URL: https://github.com/apache/airflow/issues/20248#issuecomment-992276871
Maybe you would like to attempt to fix it @PrincipalsOffice ?
--
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