Skip to content

Add retries to RPC #4969

@mrocklin

Description

@mrocklin

Currently we use retry_operation many times in our codebase like the following:

    await retry_operation(self.rpc(address=ws.address).gather, *args, **kwargs)

This is common enough that maybe we want to add it as a special keyword to rpc and the connection pool?

    await self.rpc(address=ws.address).gather(*args, **kwargs, retry=True)

This would conflict with using retry= as a parameter in any method. Maybe that's ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions