Description
The CacheableProvider in the schema processor uses hardcoded values for the cache cooldown (5 * time.Minute) and retry limit (5). There is an existing // TODO make cache configurable comment in the code.
These should be exposed as configuration options so operators can tune caching behaviour for their environment.
Relevant code
processor/schemaprocessor/internal/translation/cacheable_provider.go — NewCacheableProvider constructor
processor/schemaprocessor/internal/translation/manager.go — hardcoded NewCacheableProvider(p, 5*time.Minute, 5) call
Tracking
Part of the schema processor alpha promotion effort (#47428).
Description
The
CacheableProviderin the schema processor uses hardcoded values for the cache cooldown (5 * time.Minute) and retry limit (5). There is an existing// TODO make cache configurablecomment in the code.These should be exposed as configuration options so operators can tune caching behaviour for their environment.
Relevant code
processor/schemaprocessor/internal/translation/cacheable_provider.go—NewCacheableProviderconstructorprocessor/schemaprocessor/internal/translation/manager.go— hardcodedNewCacheableProvider(p, 5*time.Minute, 5)callTracking
Part of the schema processor alpha promotion effort (#47428).