Feat/add workflow sys params (#9108)

Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
Joe
2024-10-10 11:15:52 +08:00
committed by GitHub
parent 62051d5171
commit e947103b6d
12 changed files with 74 additions and 3 deletions

View File

@@ -85,6 +85,9 @@ class WorkflowCycleManage:
# init workflow run
workflow_run = WorkflowRun()
workflow_run_id = self._workflow_system_variables[SystemVariableKey.WORKFLOW_RUN_ID]
if workflow_run_id:
workflow_run.id = workflow_run_id
workflow_run.tenant_id = self._workflow.tenant_id
workflow_run.app_id = self._workflow.app_id
workflow_run.sequence_number = new_sequence_number