pub(crate) fn create_job(
state: &AppState,
caller: Option<&Caller>,
body: Value,
origin: Origin,
) -> (StatusCode, Json<Value>)Expand description
Create a job from a definition or the cron shape. origin.from_host: the
operator’s decision, from the host route (handle_host_jobs) or the
app’s own proven window (jobs.save): the only way to create a job that
starts workers, to raise a cap, or to confirm a job on a provider that
reports no cost. A definition that names a template is made from it
(jobs::from_template).