Bugfix redis.exceptions.TimeoutError
This commit is contained in:
+5
-1
@@ -13,7 +13,11 @@ class RedisWorker:
|
|||||||
port=int(os.getenv('REDIS_PORT')),
|
port=int(os.getenv('REDIS_PORT')),
|
||||||
username=os.getenv('REDIS_USERNAME'),
|
username=os.getenv('REDIS_USERNAME'),
|
||||||
password=os.getenv('REDIS_PASSWORD'),
|
password=os.getenv('REDIS_PASSWORD'),
|
||||||
decode_responses=True
|
decode_responses=True,
|
||||||
|
socket_timeout=10,
|
||||||
|
socket_connect_timeout=10,
|
||||||
|
retry_on_timeout=True,
|
||||||
|
max_connections=50
|
||||||
)
|
)
|
||||||
self.files_ttl = int(os.getenv('FILES_TTL'))
|
self.files_ttl = int(os.getenv('FILES_TTL'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user