ecommerce_worker/fulfillment/v1/tasks.py
def _retry_order(self, exception, max_fulfillment_retries, order_number):
    """
    Retry with exponential backoff until fulfillment
    succeeds or the retry limit is reached. If the retry limit is exceeded,
    the exception is re-raised.
    """
    retries = self.request.retries
    if retries == max_fulfillment_retries:
        logger.exception('Fulfillment of order [%s] failed. Giving up.', order_number)
    else:
        logger.warning('Fulfillment of order [%s] failed. Retrying.', order_number)

    countdown = 2 ** retries
    raise self.retry(exc=exception, countdown=countdown, max_retries=max_fulfillment_retries)
def _retry_order(self, exception, max_fulfillment_retries, order_number):
    retries = self.request.retries
    if retries == max_fulfillment_retries:
        logger.exception('Fulfillment of order [%s] failed. Giving up.', order_number)
    else:
        logger.warning('Fulfillment of order [%s] failed. Retrying.', order_number)

    countdown = 2 ** retries
    raise self.retry(exc=exception, countdown=countdown, max_retries=max_fulfillment_retries)
def _retry_order ( self , exception , max_fulfillment_retries , order_number ) : retries = self . request . retries if retries == max_fulfillment_retries : logger . exception ( 'Fulfillment of order [%s] failed. Giving up.' , order_number ) else : logger . warning ( 'Fulfillment of order [%s] failed. Retrying.' , order_number ) countdown = 2 ** retries raise self . retry ( exc = exception , countdown = countdown , max_retries = max_fulfillment_retries )
Retry with exponential backoff until fulfillment
    succeeds or the retry limit is reached. If the retry limit is exceeded,
    the exception is re-raised.
Retry with exponential backoff until fulfillment succeeds or the retry limit is reached . If the retry limit is exceeded the exception is re - raised .