Skip to main content

cancel_task

Function cancel_task 

Source
pub async fn cancel_task(
    __arg0: State<ApiState>,
    __arg1: Path<(String, String)>,
    query: Result<Query<InstanceQuery>, QueryRejection>,
    __arg3: Extension<User>,
    key: RequestKey,
) -> Result<(StatusCode, Json<CommandView>), ApiError>
Expand description

Cancel one task of a run (schedr tasks cancel): stopped if it runs, cancelled at once if it hasn’t started; the tasks downstream of it are cancelled. Applied by the master; poll the command for the decision.