We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa75be0 commit 1ba8c69Copy full SHA for 1ba8c69
pyproject.toml
@@ -1,6 +1,6 @@
1
[tool.poetry]
2
name = "usepy-plugin-redis"
3
-version = "0.1.1"
+version = "0.1.2"
4
description = ""
5
authors = ["miclon <jcnd@163.com>"]
6
readme = "README.md"
src/usepy_plugin_redis/__init__.py
@@ -36,9 +36,9 @@ def _create_connection(self):
36
while attempts <= MAX_CONNECTION_ATTEMPTS:
37
try:
38
connector = redis.Redis(**self.parameters)
39
+ connector.ping()
40
if attempts > 1:
41
logger.warning(f"RedisStore connection succeeded after {attempts} attempts", )
- connector.ping()
42
return connector
43
except redis.ConnectionError as exc:
44
logger.warning(f"RedisStore connection error<{exc}>; retrying in {delay} seconds")
0 commit comments