mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-08 03:44:14 +00:00
async auto load plugin
This commit is contained in:
parent
48eeb3dcb8
commit
42a39120c3
@ -106,9 +106,7 @@ def load_native_plugins(cfg: Config):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("load plugin from git exception!" + str(e))
|
print("load plugin from git exception!" + str(e))
|
||||||
|
|
||||||
# 创建一个线程
|
|
||||||
t = threading.Thread(target=load_from_git, args=(cfg,))
|
t = threading.Thread(target=load_from_git, args=(cfg,))
|
||||||
# 启动线程
|
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user