R/cromwellAbort.R

Defines functions cromwell_abort

Documented in cromwell_abort

#' Abort a workflow job on Cromwell
#'
#' @export
#' @template workflowid
#' @template serverdeets
#' @author Amy Paguirigan, Scott Chamberlain
#' @inheritSection workflow_options Important
#' @return a tibble
cromwell_abort <- function(workflow_id, url = cw_url(), token = NULL) {
  check_url(url)
  crom_mssg("Aborting job in Cromwell")
  http_post(make_url(url, "api/workflows/v1", workflow_id, "abort"),
    token = token
  ) %>%
    dplyr::as_tibble()
}
FredHutch/fh.wdlR documentation built on March 26, 2024, 8:40 p.m.