Skip to content

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

fix(running_subagents): handle cancellation ledger update failure

Steven Enamakel83284f5e4a69
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
index e296636131..f8ecd3ec8f 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
@@ -115,7 +115,11 @@ pub(crate) fn record_cancelled(workspace_dir: &Path, task_id: &str) {
task_id,
workspace_dir.display()
);
- ledger_cancelled(task_store_for_workspace(workspace_dir).as_ref(), task_id);
+ if let Err(err) = ledger_cancelled(task_store_for_workspace(workspace_dir).as_ref(), task_id) {
+ log::debug!(
+ "[running_subagents] cancel ledger update ignored task_id={task_id} error={err}"
+ );
+ }
}
pub(crate) fn list_task_records(workspace_dir: &Path) -> Vec<OrchestrationTaskRecord> {