def re_enqueue(self, item):
if '<STR_LIT>' in item:<EOL><INDENT>retries = item['<STR_LIT>']<EOL>if retries >= self.MAX_RETRIES:<EOL><INDENT>log.warn("<STR_LIT>"<EOL>"<STR_LIT>".format(item['<STR_LIT>'], retries))<EOL><DEDENT>else:<EOL><INDENT>retries += <NUM_LIT:1><EOL>item['<STR_LIT>'] = retries<EOL>self._q.put_nowait(item)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>item['<STR_LIT>'] = <NUM_LIT:1><EOL>self._q.put_nowait(item)<EOL><DEDENT>
Re-enqueue till reach max retries.