milton0825 commented on a change in pull request #5498: [AIRFLOW-4509] 
SubDagOperator using scheduler instead of backfill
URL: https://github.com/apache/airflow/pull/5498#discussion_r305694128
 
 

 ##########
 File path: airflow/operators/subdag_operator.py
 ##########
 @@ -46,15 +44,16 @@ class SubDagOperator(BaseOperator):
     @apply_defaults
     def __init__(
             self,
-            subdag,
-            executor=SequentialExecutor(),
+            subdag: DAG,
             *args, **kwargs):
+        super().__init__(*args, **kwargs)
+        self.subdag = subdag
+        session = kwargs.pop('session')
 
 Review comment:
   Fixed.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to