Fokko commented on a change in pull request #4322: [AIRFLOW-3518] Performance
fixes for topological_sort
URL: https://github.com/apache/incubator-airflow/pull/4322#discussion_r241831876
##########
File path: airflow/models.py
##########
@@ -2662,10 +2662,15 @@ def __init__(
}
def __eq__(self, other):
- return (
- type(self) == type(other) and
- all(self.__dict__.get(c, None) == other.__dict__.get(c, None)
- for c in self._comps))
+ if (type(self) == type(other) and
+ self.task_id == other.task_id):
Review comment:
I think this is implicitly well covered by the cycle detection tests in
`tests/models.py`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services