Skip to content

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

chore(workflow_runs): remove unused lifecycle helper

Steven Enamakel07e43e986d56
diff --git a/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs b/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs
index 425def5d20..49fc1dcfe2 100644
--- a/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs
@@ -275,8 +275,16 @@ pub(crate) async fn run_engine_loop(
return;
}
};
+ let store = match workflow_store(config) {
+ Ok(store) => store,
+ Err(error) => {
+ log::error!(target: LOG_TARGET, "[workflow_run_engine] loop.no_store run={run_id} err={error:#}");
+ clear_cancel_signal(run_id, &cancel);
+ return;
+ }
+ };
let engine = WorkflowEngine::new(
- workflow_store(config)?,
+ store,
Arc::new(super::super::host::OpenHumanWorkflowExecutor::new(
run_id,
model_override,