From 2130407663edfa4b9d27c5c70293aa45aba765e5 Mon Sep 17 00:00:00 2001 From: noO0oOo0ob <38344038+noO0oOo0ob@users.noreply.github.com> Date: Mon, 27 May 2024 15:44:43 +0800 Subject: [PATCH] fix redis kill failed (#858) Co-authored-by: noO0ob --- lyrebird/manager.py | 3 ++- lyrebird/version.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lyrebird/manager.py b/lyrebird/manager.py index 7ce71727..3dcd2ebe 100644 --- a/lyrebird/manager.py +++ b/lyrebird/manager.py @@ -270,7 +270,8 @@ def signal_handler(signum, frame): application.stop_server() application.terminate_server() application.sync_manager.destory() - RedisManager.destory() + if application.config.get('enable_multiprocess', False): + RedisManager.destory() threading.Event().set() print('!!!Ctrl-C pressed. Lyrebird stop!!!') os._exit(0) diff --git a/lyrebird/version.py b/lyrebird/version.py index ff181263..b590eb46 100644 --- a/lyrebird/version.py +++ b/lyrebird/version.py @@ -1,3 +1,3 @@ -IVERSION = (3, 0, 1) +IVERSION = (3, 0, 2) VERSION = ".".join(str(i) for i in IVERSION) LYREBIRD = "Lyrebird " + VERSION