Skip to content

Commit

Permalink
fix: ensure workflow node executions are tracked after addition to se…
Browse files Browse the repository at this point in the history
…ssion

Signed-off-by: -LAN- <laipz8200@outlook.com>
  • Loading branch information
laipz8200 committed Jan 3, 2025
1 parent db1b05a commit d3161ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/core/app/task_pipeline/workflow_cycle_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ def _handle_node_execution_start(
workflow_node_execution.created_at = datetime.now(UTC).replace(tzinfo=None)

session.add(workflow_node_execution)

self._workflow_node_executions[workflow_node_execution.id] = workflow_node_execution
return workflow_node_execution

def _handle_workflow_node_execution_success(
Expand Down Expand Up @@ -424,6 +426,8 @@ def _handle_workflow_node_execution_retried(
workflow_node_execution.index = event.node_run_index

session.add(workflow_node_execution)

self._workflow_node_executions[workflow_node_execution.id] = workflow_node_execution
return workflow_node_execution

#################################################
Expand Down

0 comments on commit d3161ff

Please sign in to comment.