mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: command node single debug run
- Added FIXME comments to indicate the need for unifying runtime config checking in AdvancedChatAppGenerator and WorkflowAppGenerator. - Introduced sandbox management in WorkflowService with proper error handling for sandbox release. - Enhanced runtime feature handling in the workflow execution process.
This commit is contained in:
@ -513,6 +513,7 @@ class AdvancedChatAppGenerator(MessageBasedAppGenerator):
|
||||
if workflow is None:
|
||||
raise ValueError("Workflow not found")
|
||||
|
||||
# FIXME: Consolidate runtime config checking into a unified location.
|
||||
runtime = workflow.features_dict.get("runtime")
|
||||
graph_engine_layers = ()
|
||||
if isinstance(runtime, dict) and runtime.get("enabled"):
|
||||
|
||||
@ -488,6 +488,7 @@ class WorkflowAppGenerator(BaseAppGenerator):
|
||||
if workflow is None:
|
||||
raise ValueError("Workflow not found")
|
||||
|
||||
# FIXME: Consolidate runtime config checking into a unified location.
|
||||
runtime = workflow.features_dict.get("runtime")
|
||||
if isinstance(runtime, dict) and runtime.get("enabled"):
|
||||
graph_engine_layers = (*graph_engine_layers, SandboxLayer())
|
||||
|
||||
Reference in New Issue
Block a user