kaxil commented on issue #17257:
URL: https://github.com/apache/airflow/issues/17257#issuecomment-889546308


   `(isinstance(current_task, SubDagOperator)`  should return true if you 
extend SubDagOperator, example:
   
   ```
   In [1]: from airflow.operators.subdag import SubDagOperator
   
   In [2]: class MySubDagOperator(SubDagOperator):
      ...:     pass
      ...:
   In [15]: isinstance(MySubDagOperator(task_id='s', subdag=DAG('ss.s', 
start_date=timezone.datetime(2020, 1, 1)), dag=DAG('ss', 
start_date=timezone.datetime(2020, 1, 1))), SubDagOperator)
   Out[15]: True
   ```


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