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

   This PR adds secret caching for the Airflow CLI. [Secret 
caching](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#use-cache)
 current only works for the DAG-processing job, but is ignored when parsing the 
files through the CLI. This currently causes slow response times from the 
Airflow CLI for DAGs that use top-level variables.
   
   By initializing the cache as part of the CLI startup, we make sure the cache 
is enabled properly for parsing. If the user did not configure caching 
explicitly, the added cache initialization is a no-op and the behavior is the 
same as before.
   
   closes: #37543 
   
   I did not add a test case yet because I did not find an existing one for 
`__main__.main()` yet. I am open for suggestions on how to properly test the 
added caching, however since this is a very small change that does not change 
behavior until explicitly configured we may be good without one.
   
   ---
   **^ Add meaningful description above**
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in a 
newsfragment file, named `{pr_number}.significant.rst` or 
`{issue_number}.significant.rst`, in 
[newsfragments](https://github.com/apache/airflow/tree/main/newsfragments).
   


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to