Skip to content

processor/schema: make CacheableProvider timeout and retry limit configurable #47761

@MikeGoldsmith

Description

@MikeGoldsmith

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.goNewCacheableProvider 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions