code: def is_agent_ready(self):
          
          try:
              response = self.client.head(self.__data_url(), timeout=0.8)
  
              if response.status_code is 200:
                  return True
              return False
          except (requests.ConnectTimeout, requests.ConnectionError):
              logger.debug("is_agent_ready: host agent connection error")
docs: Used after making a successful announce to test when the agent is ready to accept data.