def service(self):
with self.lock:<EOL><INDENT>for key in list(self.attempts.keys()):<EOL><INDENT>log.debug('<STR_LIT>' % key)<EOL>if key in self.attempts:<EOL><INDENT>if self.attempts[key] <= <NUM_LIT:1>:<EOL><INDENT>del self.attempts[key]<EOL><DEDENT>else:<EOL><INDENT>self.attempts[key] -= <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>now = datetime.datetime.utcnow()<EOL>for key in list(self.locks.keys()):<EOL><INDENT>if key in self.locks and self.locks[key] < now:<EOL><INDENT>log.info('<STR_LIT>' % key)<EOL>del self.locks[key]<EOL><DEDENT><DEDENT><DEDENT>
Decrease the countdowns, and remove any expired locks.  Should be called once every <decrease_every> seconds.