thunderbird_accounts.celery.retry

Functions

is_retryable_external_service_error(exc)

Return whether a request failure is likely to succeed later.

raise_retryable_external_service_error(exc)

Translate a transient request failure for patient Celery tasks.

retry_transient_external_service_errors(func)

Translate transient request failures raised by a task body.

thunderbird_accounts.celery.retry.is_retryable_external_service_error(exc: RequestException) → bool[source]

Return whether a request failure is likely to succeed later.

thunderbird_accounts.celery.retry.raise_retryable_external_service_error(exc: RequestException) → None[source]

Translate a transient request failure for patient Celery tasks.

thunderbird_accounts.celery.retry.retry_transient_external_service_errors(func)[source]

Translate transient request failures raised by a task body.