Skip to content

Commit c056ae2

Browse files
committed
Fail if redis is not available at startup
1 parent 1dffd99 commit c056ae2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fingr/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ async def start_server(args: argparse.Namespace) -> None:
237237
# Connect to Redis
238238
logger.debug("Connecting to Redis", host=args.redis_host, port=args.redis_port)
239239
r = redis.Redis(host=args.redis_host, port=args.redis_port)
240+
r.ping()
240241

241242
# Start Prometheus metrics server
242243
metrics_port: int = 9090

0 commit comments

Comments
 (0)