Sleep after delete key

This commit is contained in:
Jeremy Zhang 2019-02-19 17:27:22 +00:00
parent 6df7bbab25
commit c28caed0ee

View File

@ -42,6 +42,7 @@ class RedisQueue:
def validate_not_none(self, key, data_key, data):
if data[data_key] == None:
redis_store.delete(key)
time.sleep(0.1)
return False
return True