MCPcopy
hub / github.com/redis/redis-py / failure_callback

Method failure_callback

redis/asyncio/client.py:1816–1821  ·  view source on GitHub ↗
(error, failure_count)

Source from the content-addressed store, hash-verified

1814 actual_retry_attempts = 0
1815
1816 def failure_callback(error, failure_count):
1817 nonlocal actual_retry_attempts
1818 actual_retry_attempts = failure_count
1819 return self._disconnect_reset_raise_on_watching(
1820 conn, error, failure_count, start_time, command_name
1821 )
1822
1823 try:
1824 response = await conn.retry.call_with_retry(

Callers

nothing calls this directly

Tested by

no test coverage detected