Ratasa143 opened a new pull request, #61596:
URL: https://github.com/apache/airflow/pull/61596

   ### What does this PR do?
   This PR updates the best practices documentation to fix a confusing example 
in
   the Timetables section.
   
   The previous example accessed Airflow Variables inside a Timetable, which is
   evaluated during DAG parsing. Doing this at parse time can lead to 
performance
   issues or even cause the DAG processor to fail. The example has been updated 
to
   avoid database access, and a note has been added to clarify the expected and 
safe
   usage.
   
   ### Why is this change needed?
   The existing example no longer reflects current best practices and could
   mislead users into writing unsafe DAG code.
   
   ### Related issue
   Fixes #61497
   


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