htc_release() connects to an HTC submit node via SSH and runs
condor_release to un-pause jobs that HTCondor has held (S-G2) –
typically after fixing whatever caused the hold, such as raising a
resource request reported by htc_status()'s hold-reason output.
Arguments
- cluster_id
An integer, character string, or
NULL. The cluster ID to release, e.g.6302860. WhenNULL(the default), resolves to the cluster ID recorded in the submission state by the most recenthtc_submit()call. Unlikehtc_status(),htc_release()never falls back to "all of my jobs": a barecondor_releasewith no arguments releases every held job you have on the submit node, not just the ones from this project, so the function errors instead of guessing when no cluster ID is available anywhere.- config
A named list as returned by
htc_config(). Must containusernameandserver. IfNULL(the default), uses the session config set byhtc_start(). If no session config is set, the function errors with instructions.- dry_run
Logical. If
TRUE, prints the SSH command that would be executed without running it. Defaults toFALSE.- verbose
Logical. If
TRUE, prints progress messages. Defaults toFALSE.- path
A character string. Directory holding the submission state (
htc-manifest.yml), consulted only whencluster_idisNULL. Defaults to".", matching the default used elsewhere in the family.
Workflow
cfg <- htc_config()
htc_status(cluster_id = 6302860, config = cfg)
# ... shows job 6302860.0 held; hold reason printed below the table ...
# ... fix the resource request that caused the hold, then:
htc_release(cluster_id = 6302860, config = cfg)See also
htc_cancel() to remove a job instead of releasing it, and
htc_status() to see hold reasons.
Examples
# \donttest{
# Preview the SSH command without connecting to CHTC
cfg <- list(username = "netid", server = "ap2002.chtc.wisc.edu")
htc_release(cluster_id = 6302860, config = cfg, dry_run = TRUE)
#> ✔ Dry run -- command that would be executed:
#> `ssh -q netid@ap2002.chtc.wisc.edu 'condor_release 6302860'`
# }
if (FALSE) { # \dontrun{
cfg <- htc_config()
htc_release(cluster_id = 6302860, config = cfg)
} # }
