nsepetys commented on issue #18398:
URL: https://github.com/apache/airflow/issues/18398#issuecomment-925311762


   So it appears the SubDAG tasks are being hit in Airflow 2.0.2, however, 
judging from how quick the DAG scheduler runs through these versus 1.10.14 it 
makes me think there is some caching of sorts that allows the scheduler to skip 
checking the DB for the state of the tasks in the SubDAG. The reason I mention 
this is that if you change the ID of the SubDAG tasks _after_ after a run (this 
may sound like an odd and potentially unsupported Airflow behavior but this is 
my use case), the SubDAGs tasks will not be hit . Using the example I posted in 
my original comment I changed the task Id's of the SubDAG's tasks and this is 
where things appear to not work:
   
   Outside SubDAG after "successful" run:
   
![image](https://user-images.githubusercontent.com/4511738/134417359-fa52ee17-3cbe-4feb-a7bf-770a1978c687.png)
   
   Inside SubDAG after "successful" run:
   
![image](https://user-images.githubusercontent.com/4511738/134417505-1c48a105-1042-4503-9d41-daf82fc47db8.png)
   


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