mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-27 17:23:19 +08:00
* feat:提交前端代码 * feat:提交logo样式切换 * feat:替换avatar、部分位置icon、chatchat相关说明、git链接、Wiki链接、关于、设置、反馈与建议等功能,关闭lobehub自检更新功能 * fix:移除多余代码 --------- Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
23 lines
515 B
Python
23 lines
515 B
Python
from multiprocessing import Process
|
|
from typing import Dict
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
mp_manager = None
|
|
processes: Dict[str, Process] = {}
|
|
|
|
|
|
def stop():
|
|
for n, process in processes.items():
|
|
logger.warning("Sending SIGKILL to %s", p)
|
|
try:
|
|
|
|
process.kill()
|
|
except Exception as e:
|
|
logger.info("Failed to kill process %s", p, exc_info=True)
|
|
|
|
for n, p in processes.items():
|
|
logger.info("Process status: %s", p)
|
|
|
|
del processes
|