You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2023/08/10 13:01:18 UTC

[GitHub] [airflow] potiuk commented on a diff in pull request #30259: Add a cache to `Variable` and `Connection` when called at dag parsing time

potiuk commented on code in PR #30259:
URL: https://github.com/apache/airflow/pull/30259#discussion_r1290091504


##########
airflow/config_templates/config.yml:
##########
@@ -1090,6 +1090,31 @@ secrets:
       sensitive: true
       example: ~
       default: ""
+    use_cache:
+      description: |
+        .. note:: |experimental|
+
+        Enables local caching of Variables, when parsing DAGs only.
+        Using this option can make dag parsing faster if Variables are used in top level code, at the expense
+        of longer propagation time for changes.
+        Please note that this cache concerns only the DAG parsing step. There is no caching in place when DAG
+        tasks are run.
+      version_added: 2.6.0

Review Comment:
   ```suggestion
         version_added: 2.7.0
   ```



-- 
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-unsubscribe@airflow.apache.org

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