Closed kuba-lilz closed 5 years ago
Hi @kuba-lilz flushall
deletes all keys of all databases, I don't think it is the solution here.
This sounds like it could be related to #93 (the keys aren't generating correctly). As I mentioned there, could you include the code snippet of the task and how it is called?
A bad implementation that tries to solve a problem that didn't exist, see discussion in #93
Problems: redis lacks flush
When running QueueOnce subclass task, I noticed the lock key never got deleted, event though QueueOnce.after_return was called and issued
self.once_backend.clear_lock(key)
. After examining it turned out that I had to addself.redis.flushall()
toclear_lock(key)
for key to be cleared properly.Here are my libs versions:
In this pull request I added redis.flushall() after lock delete request, which solves the issue.