SCrocky commented on issue #61541:
URL: https://github.com/apache/airflow/issues/61541#issuecomment-3863287682

   @Subham-KRLX I'm thinking of doing this myself because I'd like to try 
inheriting from the original Operators.
   
   But since the operators would be children of the Standard provider, living 
inside the HTTP provider, it would need some workaround.
   
   Maybe by doing something like this:
   
   ```python
   try:
       from airflow.providers.standard import ExternalTaskSensor as 
_ExternalTaskSensor
   except ImportError:
       class ExternalTaskSensor:
           def __init__(self, *args, **kwargs):
               raise RuntimeError("Requires Airflow Standard Providers to work")
   else:
       class ExternalExternalTaskSensor(_ExternalTaskSensor):
           ...
   ```
   
   The reason for this is because since this is a slight modification on 
existing Operators, I'd like to avoid duplicating the code that already exists 
and just overwrite the methods that need to be changed.
   
   If this gets rejected or I cannot finish, I'd be happy to pass the PR onto 
you. :+1:
   
   Does that work for you?


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