Open bobinson opened 6 years ago
The problem here is that the retry logic is consentrated in snapshot.list_all_accounts
. A more comprehensive approach would be to place the retry logic in simple_steem_client
. But then the simple client wouldn't be quite as simple.
I would actually prefer to generalize the retry logic in tinman (without excessive boiler plate).
I would actually prefer to generalize the retry logic in tinman (without excessive boiler plate).
agree.
@bobinson - is that something you'd be interested in working on? We could create an issue with some very clear acceptance criteria.
@relativityboy - yes, I will be interested in giving it a try
Right now while establishing connection if tinman receives an error from the server like the example, given below, the connection is aborted. While once the connection is establishes we are retrying for
MAX_RETRY
times. In a similar fashion, if we retry or wait a few seconds based on the error message from the server, that will be helpful.A useful scenario is when an automated test is run, messages like 'Unable to acquire database lock' can be used to continue trying to start the test using tinman instead of just aborting.