Skip to content

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

fix(integrations): rename is_ingested to was_ingested and remove unused export

Steven Enamakelda86ea6320b5
diff --git a/crates/openhuman-core/src/integrations/task_sources/mod.rs b/crates/openhuman-core/src/integrations/task_sources/mod.rs
index 5bf33970ec..b582d4cbcc 100644
--- a/crates/openhuman-core/src/integrations/task_sources/mod.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/mod.rs
@@ -32,7 +32,6 @@ pub use crate::integrations::composio::providers::{
};
pub use periodic::start_periodic_poll;
pub use pipeline::run_source_once;
-pub use route::TASK_SOURCES_THREAD_ID;
pub use schemas::{
all_controller_schemas as all_task_sources_controller_schemas,
all_registered_controllers as all_task_sources_registered_controllers,
diff --git a/crates/openhuman-core/src/integrations/task_sources/pipeline.rs b/crates/openhuman-core/src/integrations/task_sources/pipeline.rs
index 2b5909fcc5..c829db9887 100644
--- a/crates/openhuman-core/src/integrations/task_sources/pipeline.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/pipeline.rs
@@ -162,8 +162,8 @@ async fn run_inner(
continue;
}
- let edited = store::is_ingested(config, &source.id, &task.external_id)
- .map_err(|e| format!("is_ingested failed: {e}"))?;
+ let edited = store::was_ingested(config, &source.id, &task.external_id)
+ .map_err(|e| format!("was_ingested failed: {e}"))?;
tracing::debug!(
source_id = %source.id,
diff --git a/crates/openhuman-core/src/integrations/task_sources/store.rs b/crates/openhuman-core/src/integrations/task_sources/store.rs
index 720956c19b..8c2ebfc499 100644
--- a/crates/openhuman-core/src/integrations/task_sources/store.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/store.rs
@@ -293,7 +293,7 @@ pub fn mark_ingested(config: &Config, source_id: &str, task: &NormalizedTask) ->
/// Whether `(source_id, external_id)` has been ingested before under any
/// content hash. The pipeline uses it to tell an edited upstream task from a
/// brand-new one in its logs.
-pub fn is_ingested(config: &Config, source_id: &str, external_id: &str) -> Result<bool> {
+pub fn was_ingested(config: &Config, source_id: &str, external_id: &str) -> Result<bool> {
with_connection(config, |conn| {
let mut stmt = conn.prepare(
"SELECT 1 FROM ingested_tasks WHERE source_id = ?1 AND external_id = ?2",
@@ -436,7 +436,7 @@ fn sql_conv<E: std::fmt::Display>(err: E) -> rusqlite::Error {
/// every open is the DDL batch itself (2 `CREATE TABLE` + 1 `CREATE INDEX`) plus
/// the 2 `PRAGMA table_info(...)` migration scans — paid before every store op,
/// and the periodic-poll fetch loop hits three of them per task (`is_ingested`,
-/// `is_ingested`, `mark_ingested`). Gating just that batch behind a per-path
+/// `was_ingested`, `mark_ingested`). Gating just that batch behind a per-path
/// "already initialized" set keeps it to one execution per process per database
/// file while every call still gets its own connection.
///