feat(v0.5.1): 插件进程隔离 — 集成到 PluginService
- PluginService._should_isolate() 检查全局配置 + 插件级配置 - _load_plugin_isolated() 使用 IsolatedPlugin (multiprocessing.Process) - unload_plugin() 兼容隔离/非隔离两种实例 - 配置: plugins.isolation (全局默认) + settings.isolation (插件级) - 插件崩溃不影响框架主进程 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -218,7 +218,8 @@ class InitService:
|
||||
'plugins': {
|
||||
'auto_load': True,
|
||||
'hot_reload': True,
|
||||
'max_retry_count': 3
|
||||
'max_retry_count': 3,
|
||||
'isolation': False, # 默认不隔离,插件可在 settings.isolation 中声明
|
||||
},
|
||||
'auto_start_scripts': {
|
||||
'enabled': True,
|
||||
|
||||
Reference in New Issue
Block a user