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

Method failure_callback

redis/client.py:1826–1832  ·  view source on GitHub ↗
(error, failure_count)

Source from the content-addressed store, hash-verified

1824 actual_retry_attempts = [0]
1825
1826 def failure_callback(error, failure_count):
1827 if is_debug_log_enabled():
1828 add_debug_log_for_operation_failure(conn)
1829 actual_retry_attempts[0] = failure_count
1830 self._disconnect_reset_raise_on_watching(
1831 conn, error, failure_count, start_time, command_name
1832 )
1833
1834 try:
1835 response = conn.retry.call_with_retry(

Callers

nothing calls this directly

Tested by

no test coverage detected