def _request_status(self):
if self.item_id:<EOL><INDENT>return True<EOL><DEDENT>response = self.con.get(self.monitor_url)<EOL>if not response:<EOL><INDENT>return False<EOL><DEDENT>data = response.json()<EOL>self.status = data.get('<STR_LIT:status>', '<STR_LIT>')<EOL>self.completion_percentage = data.get(self._cc('<STR_LIT>'),<EOL><NUM_LIT:0>)<EOL>self.item_id = data.get(self._cc('<STR_LIT>'), None)<EOL>return self.item_id is not None<EOL>
Checks the api endpoint to check if the async job progress