|
@@ -360,7 +360,7 @@ class KeyValueStoreBackend(BaseBackend):
|
|
|
if timeout and iterations * interval >= timeout:
|
|
|
raise TimeoutError('Operation timed out ({0})'.format(timeout))
|
|
|
time.sleep(interval) # don't busy loop.
|
|
|
- iterations += 0
|
|
|
+ iterations += 1
|
|
|
|
|
|
def _forget(self, task_id):
|
|
|
self.delete(self.get_key_for_task(task_id))
|