ashmeet13 opened a new pull request #11241:
URL: https://github.com/apache/airflow/pull/11241


   Hi,
   
   Adding a rule to check for Undefined Jinja Variables (Issue: #11144) when 
upgrading to Airflow2.0
   
   Logic - Use a DagBag to pull all dags and iterate over every dag. For every 
dag the task will be rendered using
   an updated Jinja Environment using - jinja2.DebugUndefined. This will render 
the template leaving undefined variables
   as they were. Using regex we can extract the variables and present possible 
error cases when upgrading.
   
   Since I am fairly new to Airflow - please do guide if there is a better 
approach to implement this rule.
   Thanks! 
   
   
   Related: #8765
   Closes: #11144


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