def check_status(self, delay=<NUM_LIT:0>):
if not self.item_id:<EOL><INDENT>while not self._request_status():<EOL><INDENT>yield self.status, self.completion_percentage<EOL>if self.item_id is None:<EOL><INDENT>sleep(delay)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>yield self.status, self.completion_percentage<EOL><DEDENT>
Checks the api endpoint in a loop

        :param delay: number of seconds to wait between api calls.
         Note Connection 'requests_delay' also apply.
        :return: tuple of status and percentage complete
        :rtype: tuple(str, float)