Skip to content

💡 [REQUEST] - Configurable retry in JSON-RPC communicator #358

@michprev

Description

@michprev

Summary

The JSON-RPC communicator currently does not implement any retry mechanism and so a first failing request makes the whole script/test crash.
https://github.com/Ackee-Blockchain/wake/blob/main/wake/development/json_rpc/communicator.py

Basic Example

It should be easy to add a configurable retry parameter with a corresponding setting (config.general.json_rpc_retry for example).

A different retry count for each chain is probably unnecessary.

Drawbacks

There are different communication protocols (IPC, WS, HTTP), and exceptions should be handled for all of them. It might be tricky to select the right exceptions to catch (and possibly status codes).

Unresolved questions

No response

Implementation PR

No response

Reference Issues

No response

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