Removed health check invocation message
All checks were successful
Build & Publish to GHCR / build (push) Successful in 25s
All checks were successful
Build & Publish to GHCR / build (push) Successful in 25s
This commit is contained in:
parent
e4ddac872b
commit
91d86edc3c
@ -40,7 +40,7 @@ def create_connection_pool():
|
|||||||
try:
|
try:
|
||||||
logger.info(f"[MySQL] Attempt {attempt} to connect...")
|
logger.info(f"[MySQL] Attempt {attempt} to connect...")
|
||||||
pool = pooling.MySQLConnectionPool(
|
pool = pooling.MySQLConnectionPool(
|
||||||
pool_name="royalroadPool",
|
pool_name="ApiPool",
|
||||||
pool_size=5,
|
pool_size=5,
|
||||||
pool_reset_session=True,
|
pool_reset_session=True,
|
||||||
**MYSQL_CONFIG
|
**MYSQL_CONFIG
|
||||||
@ -102,7 +102,6 @@ def _pool_healthcheck():
|
|||||||
conn = pool.get_connection()
|
conn = pool.get_connection()
|
||||||
conn.ping(reconnect=True, attempts=3, delay=1)
|
conn.ping(reconnect=True, attempts=3, delay=1)
|
||||||
conn.close()
|
conn.close()
|
||||||
logger.debug("[MySQL] Pool healthcheck OK.")
|
|
||||||
except Error as e:
|
except Error as e:
|
||||||
logger.warning(f"[MySQL] Pool healthcheck failed: {e}")
|
logger.warning(f"[MySQL] Pool healthcheck failed: {e}")
|
||||||
create_connection_pool()
|
create_connection_pool()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user