Skip to content

Commit

Permalink
fix bug in work-queue implementation for 'Fine Parallel Processing Us…
Browse files Browse the repository at this point in the history
…ing a Work Queue'
  • Loading branch information
dseynaev committed Sep 30, 2019
1 parent 2ec9665 commit 0b7af50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/en/examples/application/job/redis/rediswq.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def complete(self, value):
# 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.
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
# processing is complete.
Expand Down
2 changes: 1 addition & 1 deletion content/ja/examples/application/job/redis/rediswq.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def complete(self, value):
# 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.
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
# processing is complete.
Expand Down

0 comments on commit 0b7af50

Please sign in to comment.