Closed
Description
Describe the bug
See here, user defined retry_execute
wraps only self._execute
. I have a poor quality backend which will return error on random.
So I want to catch all exceptions include TransportQueryError
. But current framework won't work.
Lines 1628 to 1644 in 48bb94c
BTW, current document is a little misleading:
# Here Only 3 tries for execute calls
retry_execute = backoff.on_exception(
backoff.expo,
Exception,
max_tries=3,
giveup=lambda e: isinstance(e, TransportQueryError),
)
session = await client.connect_async(
reconnecting=True,
retry_execute=retry_execute,
)
Users like me will believe remove giveup keyword will alllow it retry on TransportQueryError