Skip to content

RetryConfig seems to be ignored on @tasks_fn.on_task_dispatched #177

Open
@sjudd

Description

@sjudd

I created a task queue function and configured the try config using the decorator:

@tasks_fn.on_task_dispatched(
    secrets=["SOME_SECRET"],
    retry_config=RetryConfig(max_attempts=5, min_backoff_seconds=60),
    rate_limits=RateLimits(max_concurrent_dispatches=1),
)

But when the body of the function throws an Error, I see 15 retries spaced about 10 seconds apart:

image

I'd expect to see only 5 retries. I'd expect each one to be at least a minute apart.

I'd also expect to see some kind of exponential backoff behavior, but instead the time between retries seems fixed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions