Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/flows/ops/run_rows.rs

Steven Enamakelb5b273641e86
diff --git a/crates/openhuman-core/src/flows/ops/run_rows.rs b/crates/openhuman-core/src/flows/ops/run_rows.rs
index 24515cc5d5..9a2378b77c 100644
--- a/crates/openhuman-core/src/flows/ops/run_rows.rs
+++ b/crates/openhuman-core/src/flows/ops/run_rows.rs
@@ -55,7 +55,7 @@ impl Drop for RunRowFinalizer {
);
// Preserve whatever steps the live observer already persisted.
let observed = current_persisted_steps(&self.config, &self.thread_id);
- let _settled = finish_flow_run_row(
+ let settled = finish_flow_run_row(
&self.config,
&self.thread_id,
&self.flow_id,
@@ -65,6 +65,9 @@ impl Drop for RunRowFinalizer {
Some(INTERRUPTED_DROP_REASON),
None,
);
+ if !settled {
+ return;
+ }
// Keep the flow-definition summary in step with the row, exactly as the
// success/failure/cancel arms and the boot sweep do — otherwise the
// runs list keeps advertising the *previous* run's `last_status` /
@@ -169,7 +172,7 @@ pub(super) fn finish_parked_flow_run_row(
pending_approvals,
error,
graph_hash,
- store::finish_flow_run,
+ store::finish_parked_flow_run,
)
}