@staticmethod
def _retry_after(current_retries):
    """
        retries will happen in this sequence;
        1min, 2min, 4min, 8min, 16min, 32min, 16min, 16min, 16min ...
        """
    if current_retries < 0:
        current_retries = 0
    if current_retries >= 6:
        return 60 * 16
    else:
        return 60 * (1 * 2 ** current_retries)
