fix(backend): execution UI did not receive completed / failed execution update (#10149)

<img width="1410" alt="image"
src="https://github.com/user-attachments/assets/bce407a2-96a1-42e9-9772-b49b8f20886c"
/>


### Changes 🏗️

Add the missing `send execution update` command on completed/update
status change for the node execution.

### Checklist 📋

#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
  <!-- Put your test plan here: -->
  - [x] Screenshot attached
This commit is contained in:
Zamil Majdy
2025-06-11 14:35:51 +07:00
committed by GitHub
parent 8028a766b1
commit 796f896042

View File

@@ -717,13 +717,15 @@ class Executor:
execution_stats.nodes_walltime += result.walltime
if (err := result.error) and isinstance(err, Exception):
execution_stats.node_error_count += 1
cls.db_client.update_node_execution_status(
node_exec_id=node_exec_id,
update_node_execution_status(
db_client=cls.db_client,
exec_id=node_exec_id,
status=ExecutionStatus.FAILED,
)
else:
cls.db_client.update_node_execution_status(
node_exec_id=node_exec_id,
update_node_execution_status(
db_client=cls.db_client,
exec_id=node_exec_id,
status=ExecutionStatus.COMPLETED,
)