Skip to main content

handle_cron_patch

Function handle_cron_patch 

Source
pub(super) async fn handle_cron_patch(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Path<String>,
    __arg3: Json<Value>,
) -> (StatusCode, Json<Value>)
Expand description

PATCH: {"action": "pause" | "resume"}, or an edit: definition fields (§5.1) laid over the job’s definition, which is then read as a create’s is. The 15-minute minimum applies only when the edit sets the trigger or the action, so a job kept as it was isn’t refused for a rule newer than it.