mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user