Add bounded LRU+TTL caching to DBDagBag for API server DAG retrieval.
Add bounded LRU+TTL caching to DBDagBag for API server DAG retrieval.: a task in bird-critic-1.5-full-300 (Harbor dataset). Long-running API servers accumulate memory indefinitely because the internal DAG version cache in DBDagBag is an unbounded plain dict that never evicts or expires entries…
The task
Long-running API servers accumulate memory indefinitely because the internal DAG version cache in `DBDagBag` is an unbounded plain dict that never evicts or expires entries. Add optional bounded caching backed by `cachetools.LRUCache` or `cachetools.TTLCache`, controlled by two new constructor parameters and two new…
Part of kochsnow/bird-critic-1.5-full-300.