is_retryable
Function: warmhub.is_retryable
is_retryable(error: object)Whether an error kind is generally safe to retry.
True for exactly NETWORK, CANCELLED, BACKEND, RATE_LIMITED.
Every other kind — including backend pass-through domain codes — is False.
Conservative by design: read WarmHubError.message before giving up on a
False, because the backend reuses some codes for transient conditions.
Asking this about a cancellation propagates it rather than answering:
to_warmhub_error refuses to classify a BaseException that is not
an Exception, and this function must not convert that refusal into a
True that sends a cancelled task back around a retry loop.