cleanup_files: Deletes temporary files associated with a Slurm job

Description Usage Arguments See Also Examples

View source: R/cancel_print_cleanup.R

Description

This function deletes all temporary files associated with the specified Slurm job, including files created by slurm_apply or slurm_call, as well as outputs from the cluster. These files should be located in the _rslurm_[jobname] folder of the current working directory.

Usage

1
cleanup_files(slr_job, wait = TRUE)

Arguments

slr_job

A slurm_job object.

wait

Specify whether to block until slr_job completes.

See Also

slurm_apply, slurm_call

Examples

1
2
3
4
5
6
7
## Not run: 
sjob <- slurm_apply(func, pars)
print_job_status(sjob) # Prints console/error output once job is completed.
func_result <- get_slurm_out(sjob, "table") # Loads output data into R.
cleanup_files(sjob)

## End(Not run)

rslurm documentation built on Nov. 17, 2017, 7:48 a.m.