firebase-functions-python icon indicating copy to clipboard operation
firebase-functions-python copied to clipboard

RetryConfig seems to be ignored on `@tasks_fn.on_task_dispatched`

Open sjudd opened this issue 1 year ago • 4 comments

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

sjudd avatar Feb 14 '24 17:02 sjudd

Hey @sjudd. Could you give me the logs for one of these errors?

exaby73 avatar Mar 04 '24 12:03 exaby73

@exaby73 sorry i missed this. Can you clarify what you're looking for? The error is an incorrectly formatted request to a graphql endpoint.

sjudd avatar Sep 19 '24 22:09 sjudd

Can you expand the error and paste one here with any private information redacted?

exaby73 avatar Oct 16 '24 11:10 exaby73