pub async fn drain_worker(
__arg0: State<ApiState>,
__arg1: Path<String>,
__arg2: Extension<User>,
key: RequestKey,
) -> Result<(StatusCode, Json<CommandView>), ApiError>Expand description
Drain a worker for maintenance (schedr workers drain): no new tasks, its running ones
finish; kept across restarts until resumed. Applied by the master; poll the command for
the decision.