in pipeline/configuration/configuration.py [0:0]
def retry_before_sleep(self, retry_state):
# Log the outcome of each retry attempt.
message = f"""Retrying {retry_state.fn}:
attempt {retry_state.attempt_number}
ended with: {retry_state.outcome}"""
if retry_state.outcome.failed:
ex = retry_state.outcome.exception()
message += f"; Exception: {ex.__class__.__name__}: {ex}"
if retry_state.attempt_number < 1:
logging.info(message)
else:
logging.warning(message)