mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor(workflow): enforce typed query boundary
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
from app.application.workflow import configure_workflow_runtime
|
||||
from app.workflow import WorkFlowManager
|
||||
from app.workflow import WorkflowManager
|
||||
|
||||
# 启动模块是 concrete WorkFlowManager 的唯一宿主装配边界。
|
||||
configure_workflow_runtime(lambda: WorkFlowManager())
|
||||
# 启动模块是 concrete WorkflowManager 的唯一宿主装配边界。
|
||||
configure_workflow_runtime(lambda: WorkflowManager())
|
||||
|
||||
|
||||
def init_workflow():
|
||||
"""
|
||||
初始化工作流
|
||||
"""
|
||||
WorkFlowManager()
|
||||
WorkflowManager()
|
||||
|
||||
|
||||
def stop_workflow() -> bool:
|
||||
"""
|
||||
停止工作流并返回全部活动执行是否收敛。
|
||||
"""
|
||||
return WorkFlowManager().stop()
|
||||
return WorkflowManager().stop()
|
||||
|
||||
Reference in New Issue
Block a user