tinyhumansai/openhuman · error

Missing scheduling parameters

Error message

Missing scheduling parameters

What it means

handle_create_like reached its final branch having matched none of the scheduling inputs — no cron 'expression', no 'delay', no 'run_at'. It is the catch-all guard meaning the create request specified no when; nothing is persisted.

Source

Thrown at src/openhuman/tools/impl/system/schedule.rs:399

                "Created recurring job {} (expr: {}, next: {}, cmd: {})",
                job.id,
                job.expression,
                job.next_run.to_rfc3339(),
                job.command
            )));
        }

        if let Some(value) = delay {
            let job = cron::add_once(&self.config, value, command)?;
            return Ok(ToolResult::success(format!(
                "Created one-shot job {} (runs at: {}, cmd: {})",
                job.id,
                job.next_run.to_rfc3339(),
                job.command
            )));
        }

        let run_at_raw = run_at.ok_or_else(|| anyhow::anyhow!("Missing scheduling parameters"))?;
        let run_at_parsed: DateTime<Utc> = DateTime::parse_from_rfc3339(run_at_raw)
            .map_err(|error| anyhow::anyhow!("Invalid run_at timestamp: {error}"))?
            .with_timezone(&Utc);

        let job = cron::add_once_at(&self.config, run_at_parsed, command)?;
        Ok(ToolResult::success(format!(
            "Created one-shot job {} (runs at: {}, cmd: {})",
            job.id,
            job.next_run.to_rfc3339(),
            job.command
        )))
    }

    fn handle_cancel(&self, id: &str) -> ToolResult {
        match cron::remove_job(&self.config, id) {
            Ok(()) => ToolResult::success(format!("Cancelled job {id}")),
            Err(error) => ToolResult::error(error.to_string()),
        }

View on GitHub (pinned to 7491200858)

Solutions

  1. Provide one of "expression" (cron), "delay" (duration), or "run_at" (RFC 3339 time)
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/tools/impl/system/schedule.rs:399 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/ef38a6bfe964d1c8. Report an issue: GitHub.