Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(api/core/workflow/enums): Rename WORKFLOW_RUN_ID to WORKFLOW_EXECUTION_ID (#20459)
-LAN-db488bef51b9
diff --git a/api/core/app/apps/advanced_chat/app_runner.py b/api/core/app/apps/advanced_chat/app_runner.pyindex c83e06bf154..d9b38338629 100644--- a/api/core/app/apps/advanced_chat/app_runner.py+++ b/api/core/app/apps/advanced_chat/app_runner.py@@ -140,7 +140,7 @@ class AdvancedChatAppRunner(WorkflowBasedAppRunner):SystemVariableKey.DIALOGUE_COUNT: self._dialogue_count,SystemVariableKey.APP_ID: app_config.app_id,SystemVariableKey.WORKFLOW_ID: app_config.workflow_id,- SystemVariableKey.WORKFLOW_RUN_ID: self.application_generate_entity.workflow_run_id,+ SystemVariableKey.WORKFLOW_EXECUTION_ID: self.application_generate_entity.workflow_run_id,}# init variable pooldiff --git a/api/core/app/apps/advanced_chat/generate_task_pipeline.py b/api/core/app/apps/advanced_chat/generate_task_pipeline.pyindex ffce11187b5..112e178b823 100644--- a/api/core/app/apps/advanced_chat/generate_task_pipeline.py+++ b/api/core/app/apps/advanced_chat/generate_task_pipeline.py@@ -124,7 +124,7 @@ class AdvancedChatAppGenerateTaskPipeline:SystemVariableKey.DIALOGUE_COUNT: dialogue_count,SystemVariableKey.APP_ID: application_generate_entity.app_config.app_id,SystemVariableKey.WORKFLOW_ID: workflow.id,- SystemVariableKey.WORKFLOW_RUN_ID: application_generate_entity.workflow_run_id,+ SystemVariableKey.WORKFLOW_EXECUTION_ID: application_generate_entity.workflow_run_id,},workflow_info=CycleManagerWorkflowInfo(workflow_id=workflow.id,diff --git a/api/core/app/apps/workflow/app_runner.py b/api/core/app/apps/workflow/app_runner.pyindex c93a49b7e4c..b59e34e222a 100644--- a/api/core/app/apps/workflow/app_runner.py+++ b/api/core/app/apps/workflow/app_runner.py@@ -95,7 +95,7 @@ class WorkflowAppRunner(WorkflowBasedAppRunner):SystemVariableKey.USER_ID: user_id,SystemVariableKey.APP_ID: app_config.app_id,SystemVariableKey.WORKFLOW_ID: app_config.workflow_id,- SystemVariableKey.WORKFLOW_RUN_ID: self.application_generate_entity.workflow_execution_id,+ SystemVariableKey.WORKFLOW_EXECUTION_ID: self.application_generate_entity.workflow_execution_id,}variable_pool = VariablePool(diff --git a/api/core/app/apps/workflow/generate_task_pipeline.py b/api/core/app/apps/workflow/generate_task_pipeline.pyindex e678774fae8..fb0ea80a3a8 100644--- a/api/core/app/apps/workflow/generate_task_pipeline.py+++ b/api/core/app/apps/workflow/generate_task_pipeline.py@@ -113,7 +113,7 @@ class WorkflowAppGenerateTaskPipeline:SystemVariableKey.USER_ID: user_session_id,SystemVariableKey.APP_ID: application_generate_entity.app_config.app_id,SystemVariableKey.WORKFLOW_ID: workflow.id,- SystemVariableKey.WORKFLOW_RUN_ID: application_generate_entity.workflow_execution_id,+ SystemVariableKey.WORKFLOW_EXECUTION_ID: application_generate_entity.workflow_execution_id,},workflow_info=CycleManagerWorkflowInfo(workflow_id=workflow.id,diff --git a/api/core/workflow/enums.py b/api/core/workflow/enums.pyindex 9642efa1a5c..b52a2b0e6ef 100644--- a/api/core/workflow/enums.py+++ b/api/core/workflow/enums.py@@ -13,4 +13,4 @@ class SystemVariableKey(StrEnum):DIALOGUE_COUNT = "dialogue_count"APP_ID = "app_id"WORKFLOW_ID = "workflow_id"- WORKFLOW_RUN_ID = "workflow_run_id"+ WORKFLOW_EXECUTION_ID = "workflow_run_id"diff --git a/api/core/workflow/workflow_cycle_manager.py b/api/core/workflow/workflow_cycle_manager.pyindex 6365ab53a2d..b88f9edd030 100644--- a/api/core/workflow/workflow_cycle_manager.py+++ b/api/core/workflow/workflow_cycle_manager.py@@ -65,7 +65,7 @@ class WorkflowCycleManager:# init workflow run# TODO: This workflow_run_id should always not be None, maybe we can use a more elegant way to handle this- execution_id = str(self._workflow_system_variables.get(SystemVariableKey.WORKFLOW_RUN_ID) or uuid4())+ execution_id = str(self._workflow_system_variables.get(SystemVariableKey.WORKFLOW_EXECUTION_ID) or uuid4())execution = WorkflowExecution.new(id_=execution_id,workflow_id=self._workflow_info.workflow_id,diff --git a/api/tests/unit_tests/core/workflow/test_workflow_cycle_manager.py b/api/tests/unit_tests/core/workflow/test_workflow_cycle_manager.pyindex db75370d678..fddc182594e 100644--- a/api/tests/unit_tests/core/workflow/test_workflow_cycle_manager.py+++ b/api/tests/unit_tests/core/workflow/test_workflow_cycle_manager.py@@ -73,7 +73,7 @@ def real_workflow_system_variables():SystemVariableKey.USER_ID: "test-user-id",SystemVariableKey.APP_ID: "test-app-id",SystemVariableKey.WORKFLOW_ID: "test-workflow-id",- SystemVariableKey.WORKFLOW_RUN_ID: "test-workflow-run-id",+ SystemVariableKey.WORKFLOW_EXECUTION_ID: "test-workflow-run-id",}