tirkarthi commented on code in PR #60274:
URL: https://github.com/apache/airflow/pull/60274#discussion_r2690660596
##########
providers/fab/src/airflow/providers/fab/auth_manager/fab_auth_manager.py:
##########
@@ -161,6 +162,7 @@
MenuItem.XCOMS: RESOURCE_XCOM,
}
+CACHE_TTL = conf.getint("fab", "cache_ttl", fallback=30)
Review Comment:
Yes, I had set it to zero to test disabling cache and also added a print
statement. It had the value from configuration printed. I am initializing the
cache at class level so `self` will not be accessible to do below when ttl
becomes a `@cached_property`
```python
class FabAuthManager(BaseAuthManager[User]):
cache: TTLCache = TTLCache(maxsize=1024, ttl=CACHE_TTL)
```
--
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]