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 Enamakel75dda68e5123
diff --git a/crates/openhuman-core/src/flows/ops/run_rows.rs b/crates/openhuman-core/src/flows/ops/run_rows.rs
index 9a2378b77c..d1d9b497bf 100644
--- a/crates/openhuman-core/src/flows/ops/run_rows.rs
+++ b/crates/openhuman-core/src/flows/ops/run_rows.rs
@@ -176,6 +176,17 @@ pub(super) fn finish_parked_flow_run_row(
)
}
+type RunRowFinishWriter = fn(
+ &Config,
+ &str,
+ &str,
+ &str,
+ &[FlowRunStep],
+ &[String],
+ Option<&str>,
+ Option<&str>,
+) -> anyhow::Result<bool>;
+
#[allow(clippy::too_many_arguments)]
fn finish_flow_run_row_with_writer(
config: &Config,
@@ -186,16 +197,7 @@ fn finish_flow_run_row_with_writer(
pending_approvals: &[String],
error: Option<&str>,
graph_hash: Option<&str>,
- writer: fn(
- &Config,
- &str,
- &str,
- &str,
- &[FlowRunStep],
- &[String],
- Option<&str>,
- Option<&str>,
- ) -> anyhow::Result<bool>,
+ writer: RunRowFinishWriter,
) -> bool {
let finished_at = Utc::now().to_rfc3339();
match writer(