docs: def get_countdown(self, retries) -> int:
          """Calculate the countdown for a celery task retry."""
          retry_delay = self.retry_delay
          if self.retry_exponential_backoff:
              return min(
                  max(2 ** retries, retry_delay),  # Exp. backoff
                  self.max_retry_delay  # The countdown should be more the max allowed
              )
          return retry_delay