kaxil commented on a change in pull request #7119: [AIRFLOW-5840] Add operator 
extra link to external task sensor
URL: https://github.com/apache/airflow/pull/7119#discussion_r365457054
 
 

 ##########
 File path: airflow/plugins_manager.py
 ##########
 @@ -133,6 +133,9 @@ def register_inbuilt_operator_links() -> None:
     except ImportError:
         pass
 
+    from airflow.sensors.external_task_sensor import ExternalTaskLink
+    inbuilt_operator_links.update([ExternalTaskLink])
+
 
 Review comment:
   let's do it in the following way
   
   ```
       try:
           from airflow.sensors.external_task_sensor import ExternalTaskLink   
# pylint: disable=R0401
           inbuilt_operator_links.update([ExternalTaskLink])
       except ImportError:
           pass
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to