hussein-awala commented on code in PR #30259:
URL: https://github.com/apache/airflow/pull/30259#discussion_r1286457723


##########
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.8.0
   ```



##########
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
+      type: boolean
+      example: ~
+      default: "False"
+    cache_ttl_seconds:
+      description: |
+        .. note:: |experimental|
+
+        When the cache is enabled, this is the duration for which we consider 
an entry in the cache to be
+        valid. Entries are refreshed if they are older than this many seconds.
+        It means that when the cache is enabled, this is the maximum amount of 
time you need to wait to see a
+        Variable change take effect.
+      version_added: 2.6.0

Review Comment:
   ```suggestion
         version_added: 2.8.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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to