You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2025. It is now read-only.
When writing a backoff_handler, it would be very useful for us to have access to some information about the failed response.
Currently, the availables details are as follows.
class _Details(TypedDict):
target: Callable[..., Any]
args: Tuple[Any, ...]
kwargs: Dict[str, Any]
tries: int
elapsed: float
class Details(_Details, **details_kwargs):
wait: float # present in the on_backoff handler case for either decorator
value: Any # present in the on_predicate decorator case
Would it be possible to add the Response.status_code? Or even maybe the full Response?