sunank200 commented on code in PR #59921:
URL: https://github.com/apache/airflow/pull/59921#discussion_r2655422718
##########
providers/openlineage/src/airflow/providers/openlineage/utils/utils.py:
##########
@@ -537,7 +538,13 @@ def is_selective_lineage_enabled(obj: DAG | SerializedDAG
| AnyOperator) -> bool
@provide_session
def is_ti_rescheduled_already(ti: TaskInstance, session=NEW_SESSION):
- from sqlalchemy import exists, select
+ try:
Review Comment:
The function is already guarded by 'if not AIRFLOW_V_3_0_PLUS:' so the inner
check for AIRFLOW_V_3_0_PLUS was unreachable dead code. Removed the dead code.
--
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]