Skip to main content

retry

superduper.misc.retry

Source code

db_retry​

db_retry(connector='databackend')
ParameterDescription
connectorConnector of the datalayer instance.

Helper method to retry methods with database calls.

Retry​

Retry(self,
exception_types: Union[Type[BaseException],
Tuple[Type[BaseException],
...]],
cfg: Optional[superduper.base.config.Retry] = None) -> None
ParameterDescription
exception_typesThe exception types to retry on.
cfgThe retry config. If None, uses the default config.

Retry a function until it succeeds.

This is a thin wrapper around the tenacity retry library, using our configs.