Skip to content

[Docs]: Duration on RetryStrategyConfig #295

@yaythomas

Description

@yaythomas

Issue

Documentation in AGENTS.md, docs/best-practices and others for RetryStrategyConfig incorrectly show delay fields with int/float rather than Duration.

class RetryStrategyConfig:
max_attempts: int = 3
initial_delay: Duration = field(default_factory=lambda: Duration.from_seconds(5))
max_delay: Duration = field(
default_factory=lambda: Duration.from_minutes(5)
) # 5 minutes
backoff_rate: Numeric = 2.0
jitter_strategy: JitterStrategy = field(default=JitterStrategy.FULL)
retryable_errors: list[str | re.Pattern] | None = None
retryable_error_types: list[type[Exception]] | None = None

Page/Location

various

Suggested Fix

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions