Skip to content

Commit

Permalink
Merge 2d20114 into ffd21cb
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-lilz committed Apr 18, 2019
2 parents ffd21cb + 2d20114 commit f2febbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,6 @@ venv.bak/

# OSX
*.DS_Store


.idea
3 changes: 2 additions & 1 deletion celery_once/backends/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ def raise_or_lock(self, key, timeout):

def clear_lock(self, key):
"""Remove the lock from redis."""
return self.redis.delete(key)
self.redis.delete(key)
self.redis.flushall()

0 comments on commit f2febbc

Please sign in to comment.