1 2 3 4 5 6 7 8 9 10 11
use anyhow::Result; pub fn run_once() -> Result<()> { let status = std::process::Command::new("cargo") .args(["run", "--quiet", "--", "schedule:run"]) .status()?; if !status.success() { anyhow::bail!("schedule run failed"); } Ok(()) }