mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 11:14:10 +08:00
refactor(api/core/workflow/workflow_engine_manager.py): Remove (#6630)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
72bc9d5f2b
commit
31efe10c75
@ -87,15 +87,18 @@ class WorkflowEngineManager:
|
|||||||
|
|
||||||
return default_config
|
return default_config
|
||||||
|
|
||||||
def run_workflow(self, *, workflow: Workflow,
|
def run_workflow(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
workflow: Workflow,
|
||||||
user_id: str,
|
user_id: str,
|
||||||
user_from: UserFrom,
|
user_from: UserFrom,
|
||||||
invoke_from: InvokeFrom,
|
invoke_from: InvokeFrom,
|
||||||
user_inputs: Mapping[str, Any],
|
user_inputs: Mapping[str, Any],
|
||||||
system_inputs: Mapping[SystemVariable, Any],
|
system_inputs: Mapping[SystemVariable, Any],
|
||||||
callbacks: Sequence[WorkflowCallback],
|
callbacks: Sequence[WorkflowCallback],
|
||||||
call_depth: int = 0,
|
call_depth: int = 0
|
||||||
variable_pool: Optional[VariablePool] = None) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
:param workflow: Workflow instance
|
:param workflow: Workflow instance
|
||||||
:param user_id: user id
|
:param user_id: user id
|
||||||
@ -120,7 +123,6 @@ class WorkflowEngineManager:
|
|||||||
raise ValueError('edges in workflow graph must be a list')
|
raise ValueError('edges in workflow graph must be a list')
|
||||||
|
|
||||||
# init variable pool
|
# init variable pool
|
||||||
if not variable_pool:
|
|
||||||
variable_pool = VariablePool(
|
variable_pool = VariablePool(
|
||||||
system_variables=system_inputs,
|
system_variables=system_inputs,
|
||||||
user_inputs=user_inputs,
|
user_inputs=user_inputs,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user