R/UnpauseQueue.R

Defines functions UnpauseQueue

Documented in UnpauseQueue

#' Re-start the DataRobot modeling queue
#'
#' This function unpauses the modeling queue for a specified
#' DataRobot project.
#'
#' @inheritParams DeleteProject
#' @examples
#' \dontrun{
#'   projectId <- "59a5af20c80891534e3c2bde"
#'   UnpauseQueue(projectId)
#' }
#' @export
UnpauseQueue <- function(project) {
  projectId <- ValidateProject(project)
  routeString <- UrlJoin("projects", projectId, "autopilot")
  body <- jsonlite::unbox(data.frame(command = "start"))
  response <- DataRobotPOST(routeString, body = body, encode = "json")
  message(paste("Queue for project", projectId, "unpaused"))
}

Try the datarobot package in your browser

Any scripts or data that you put into this service are public.

datarobot documentation built on Nov. 3, 2023, 1:07 a.m.