From c28caed0eed5a65c3b1871cd4c566031fcf3e5f9 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Tue, 19 Feb 2019 17:27:22 +0000 Subject: [PATCH] Sleep after delete key --- webapp/titanembeds/redisqueue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/titanembeds/redisqueue.py b/webapp/titanembeds/redisqueue.py index e56836a..3da58e4 100644 --- a/webapp/titanembeds/redisqueue.py +++ b/webapp/titanembeds/redisqueue.py @@ -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