Skip to content

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

chore(tinyflows): bump module to 0.8.25

Steven Enamakela4789ec18c2d
diff --git a/crates/openhuman-core/src/cron/scheduler.rs b/crates/openhuman-core/src/cron/scheduler.rs
index 56d034c8f4..916c3fe051 100644
--- a/crates/openhuman-core/src/cron/scheduler.rs
+++ b/crates/openhuman-core/src/cron/scheduler.rs
@@ -48,7 +48,7 @@ pub use delivery::deliver_job;
use crate::config::Config;
use crate::core::bus::BUS;
use crate::core::events::DomainEvent;
-use crate::cron::bus_host::{self, Binding, HostRegistration, CLAIM_SCOPE};
+use crate::cron::bus_host::{self, Binding, HostRegistration};
use crate::cron::documents_port::DocScope;
use crate::modules::tinyflows as module;
use crate::security::SecurityPolicy;
@@ -56,7 +56,7 @@ use anyhow::{anyhow, Result};
use std::sync::Arc;
use tinyflows_bus::schedule::types::CronJob;
use tinyflows_bus::schedule::{
- members, ManualDelivery, RunJobNow, RunJobReply, StartScheduler, StoreBackend,
+ members, ManualDelivery, RunJobReply, StartScheduler, StoreBackend,
StoreConfig,
};
use tokio::time::{self, Duration};
diff --git a/crates/openhuman-core/src/cron/scheduler/dispatcher.rs b/crates/openhuman-core/src/cron/scheduler/dispatcher.rs
index 215452a3d8..4e81e3fe16 100644
--- a/crates/openhuman-core/src/cron/scheduler/dispatcher.rs
+++ b/crates/openhuman-core/src/cron/scheduler/dispatcher.rs
@@ -457,20 +457,27 @@ impl Drop for JobDispatcher {
return;
};
// Stop the module's scheduler (releasing its claims) before the
- // callback object it would call goes away.
+ // callback object it would call goes away. A failed or ambiguous stop
+ // is retried while the registration remains owned by this task.
runtime.spawn(async move {
- match module::proxy(&config).await {
- Ok(proxy) => {
- let stopped = proxy
- .call::<()>(members::STOP_SCHEDULER, (started.handle.clone(),))
- .await;
- if let Err(error) = stopped {
- tracing::debug!(error = %error.wire_message(), "[cron:scheduler] StopScheduler failed");
- }
+ let Started { handle, host } = started;
+ let _host_lifetime = host;
+ let mut retry_delay = Duration::from_millis(100);
+ loop {
+ let stopped = match module::proxy(&config).await {
+ Ok(proxy) => proxy
+ .call::<()>(members::STOP_SCHEDULER, (handle.clone(),))
+ .await
+ .map_err(|error| error.wire_message()),
+ Err(error) => Err(error),
+ };
+ match stopped {
+ Ok(()) => break,
+ Err(error) => tracing::debug!(%error, "[cron:scheduler] retrying StopScheduler while retaining callback"),
}
- Err(error) => tracing::debug!(%error, "[cron:scheduler] StopScheduler skipped"),
+ tokio::time::sleep(retry_delay).await;
+ retry_delay = (retry_delay * 2).min(Duration::from_secs(5));
}
- drop(started.host);
});
}
}
diff --git a/crates/openhuman-core/src/modules/registry/records_flows.rs b/crates/openhuman-core/src/modules/registry/records_flows.rs
index feda53d79b..310ec48124 100644
--- a/crates/openhuman-core/src/modules/registry/records_flows.rs
+++ b/crates/openhuman-core/src/modules/registry/records_flows.rs
@@ -6,64 +6,64 @@ pub(crate) const TINYFLOWS: ModuleRecord = ModuleRecord {
description: "Scheduled jobs and workflow authoring through TinyFlows",
bus_name: tinyflows_bus::BUS_NAME,
object_path: tinyflows_bus::OBJECT_PATH,
- version: "0.8.24",
- release_url: "https://github.com/tinyhumansai/tinyflows/releases/tag/v0.8.24",
- // Verbatim from the published v0.8.24 checksum.toml.
+ version: "0.8.25",
+ release_url: "https://github.com/tinyhumansai/tinyflows/releases/tag/v0.8.25",
+ // Verbatim from the published v0.8.25 checksum.toml.
assets: &[
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinyflows-module-0.8.24-macos-26-arm64.tar.gz",
- sha256: "c2af0e6c1188e3e7cb832539419897fef28045fb39d96abbb86de315afacc57c",
+ archive: "tinyflows-module-0.8.25-macos-26-arm64.tar.gz",
+ sha256: "af7e4fd98885704f4745384b32f628128954389595269698bc26fa90be41ea68",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinyflows-module-0.8.24-macos-26-x86_64.tar.gz",
- sha256: "d0519abfba02708e684951ede6864d380ffce8136e51b0efe9520660948f928a",
+ archive: "tinyflows-module-0.8.25-macos-26-x86_64.tar.gz",
+ sha256: "d253d9ca4d95b806042b7b5bc4f98acfdb174c0512e3fb7035a46a7e0e07b39d",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinyflows-module-0.8.24-macos-15-arm64.tar.gz",
- sha256: "07b13fb23aa53f8b12ffc2275e40c8d98cc0297b14aace3445f28892316cd4f3",
+ archive: "tinyflows-module-0.8.25-macos-15-arm64.tar.gz",
+ sha256: "2f6a938f3d12874db93d3b44eca3e7aa44418cd1c6d07a06813d3ff10eddacbe",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinyflows-module-0.8.24-macos-15-x86_64.tar.gz",
- sha256: "29b08d245c0ecfffbdeb4966cd38a9e4c4c9d014f06cbaec0c8b22499e629063",
+ archive: "tinyflows-module-0.8.25-macos-15-x86_64.tar.gz",
+ sha256: "7dafc35c4754e1198209f0fd182e3ab3e7e1aa2bb6cfdcfad1bae0649049aa7f",
},
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinyflows-module-0.8.24-ubuntu-24.04-x86_64.tar.gz",
- sha256: "1d864ef3c45aa5b918addfafff6755e750e94701c910b1a8c64d70ffe5fbb14e",
+ archive: "tinyflows-module-0.8.25-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "1a713e76ff38034481a06cfc0dc9cee1c59af80af6338d9d4a4c8901fbab7c8f",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinyflows-module-0.8.24-ubuntu-24.04-arm64.tar.gz",
- sha256: "e7279ae70e6dd90533b2c9e4f7a2497a1979c05fa7db472b1abdeb4f3b4209cc",
+ archive: "tinyflows-module-0.8.25-ubuntu-24.04-arm64.tar.gz",
+ sha256: "b0f59ee5d2f7726f409a5e3d5cd48eea2f2a2f32fe82a070eb8758ee80ae2646",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinyflows-module-0.8.24-ubuntu-22.04-x86_64.tar.gz",
- sha256: "7794cc2693ea5c46728676939468269b73af56135944d74425c813e135b88180",
+ archive: "tinyflows-module-0.8.25-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "4d8f500c83243894daea71a3051c1d549269cd2079bf114469c41324a7e3733d",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinyflows-module-0.8.24-ubuntu-22.04-arm64.tar.gz",
- sha256: "37831b640f577d7e1ce5f1e70288cd536d4282a2d6b01d2efed1a5414863a1d6",
+ archive: "tinyflows-module-0.8.25-ubuntu-22.04-arm64.tar.gz",
+ sha256: "3eadc6e3e71a6176354a695b33897b6eda61ba469f26dc51e27dd3e966cebda0",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinyflows-module-0.8.24-windows-2025-x86_64.zip",
- sha256: "25a44e6c31cb98bfcc5209091eedeaec7c861a02a5e6c5aeb69ae4d82c77ae30",
+ archive: "tinyflows-module-0.8.25-windows-2025-x86_64.zip",
+ sha256: "9cf9b8bf35b4e7134a57dc5e03d14966c9ff468bfec16fcac8b22285dcbc2e40",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinyflows-module-0.8.24-windows-2022-x86_64.zip",
- sha256: "77b3d1333d5eefb296df6745c7308c3d8b3e2c75cd74d690939c6a850d5ba782",
+ archive: "tinyflows-module-0.8.25-windows-2022-x86_64.zip",
+ sha256: "bb5c8d97030aa53a05c3baf60bb1e3a6a8631be6add72a03823052b795fb1286",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinyflows-module-0.8.24-windows-11-arm64.zip",
- sha256: "f7f31f05154c5a6cdc726d31f8d28c33674ac53453a3c28c42ec758f813cbaf9",
+ archive: "tinyflows-module-0.8.25-windows-11-arm64.zip",
+ sha256: "712cf7bc89b3d0a1a02beff3d792990047cd946a23433a3e6f54b35545963ad8",
},
],
load: LoadPolicy::Lazy,
diff --git a/crates/openhuman-core/src/modules/tinyflows.rs b/crates/openhuman-core/src/modules/tinyflows.rs
index f397cf4ce8..b20c7da2ec 100644
--- a/crates/openhuman-core/src/modules/tinyflows.rs
+++ b/crates/openhuman-core/src/modules/tinyflows.rs
@@ -2,7 +2,7 @@
//!
//! The module owns the scheduler runtime (poll loop, claims, retry, completion),
//! the cron job and run store, and the schedule maths behind
-//! `tinyflows_bus::schedule` (contract v3). This host file is the whole
+//! `tinyflows_bus::schedule` (contract v6). This host file is the whole
//! transport story for it:
//!
//! - [`proxy`] loads the module lazily and returns a proxy for its `Schedule`