fix bug in work-queue implementation for 'Fine Parallel Processing Using a Work Queue' (#16625)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
232d99ef14
commit
e6a6e422bd
@@ -111,7 +111,7 @@ class RedisWQ(object):
|
|||||||
# If we crash here, then the GC code will try to move the value, but it will
|
# If we crash here, then the GC code will try to move the value, but it will
|
||||||
# not be here, which is fine. So this does not need to be a transaction.
|
# not be here, which is fine. So this does not need to be a transaction.
|
||||||
itemkey = self._itemkey(value)
|
itemkey = self._itemkey(value)
|
||||||
self._db.delete(self._lease_key_prefix + itemkey, self._session)
|
self._db.delete(self._lease_key_prefix + itemkey)
|
||||||
|
|
||||||
# TODO: add functions to clean up all keys associated with "name" when
|
# TODO: add functions to clean up all keys associated with "name" when
|
||||||
# processing is complete.
|
# processing is complete.
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ class RedisWQ(object):
|
|||||||
# If we crash here, then the GC code will try to move the value, but it will
|
# If we crash here, then the GC code will try to move the value, but it will
|
||||||
# not be here, which is fine. So this does not need to be a transaction.
|
# not be here, which is fine. So this does not need to be a transaction.
|
||||||
itemkey = self._itemkey(value)
|
itemkey = self._itemkey(value)
|
||||||
self._db.delete(self._lease_key_prefix + itemkey, self._session)
|
self._db.delete(self._lease_key_prefix + itemkey)
|
||||||
|
|
||||||
# TODO: add functions to clean up all keys associated with "name" when
|
# TODO: add functions to clean up all keys associated with "name" when
|
||||||
# processing is complete.
|
# processing is complete.
|
||||||
|
|||||||
Reference in New Issue
Block a user