mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
refactor: own active workflow executions
This commit is contained in:
@@ -13,8 +13,8 @@ def init_workflow():
|
||||
WorkFlowManager()
|
||||
|
||||
|
||||
def stop_workflow():
|
||||
def stop_workflow() -> bool:
|
||||
"""
|
||||
停止工作流
|
||||
停止工作流并返回全部活动执行是否收敛。
|
||||
"""
|
||||
WorkFlowManager().stop()
|
||||
return WorkFlowManager().stop()
|
||||
|
||||
@@ -482,6 +482,7 @@ def build_lifecycle_components(app: FastAPI) -> tuple[LifecycleComponent, ...]:
|
||||
stop_order=20,
|
||||
start_timeout_seconds=120,
|
||||
stop_timeout_seconds=120,
|
||||
stop_failure=LifecycleFailurePolicy.FAIL_FAST,
|
||||
),
|
||||
LifecycleComponent(
|
||||
name="插件备份",
|
||||
|
||||
Reference in New Issue
Block a user