BoneArch commented on issue #14572:
URL: https://github.com/apache/airflow/issues/14572#issuecomment-793477366


   If external_trigger is set to False, Airflow will return next_ds and prev_ds 
correctly even in 2.0.
   
https://github.com/apache/airflow/blob/beb8af5ac6c438c29e2c186145115fb1334a3735/airflow/operators/subdag.py#L150-L156
   
   Running the test code in 2.0 returns the following result when 
external_trigger is set to False:
   ```
   outer_test => ds=2021-02-25, next_ds=2021-02-26, prev_ds=2021-02-24
   inner_test => ds=2021-02-25, next_ds=2021-02-26, prev_ds=2021-02-24
   ```
   
   It seems that SubDagOperator was rewritten with 
https://github.com/apache/airflow/pull/5498 , but I don't understand why 
external_trigger is set to 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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to