This function creates a slurm_job
object which can be passed to other
functions such as cancel_slurm
, cleanup_files
,
get_slurm_out
and get_job_status
.
slurm_job(jobname = NULL, jobid = NULL, nodes = NULL)
The name of the Slurm job. The rslurm-generated scripts and output files associated with a job should be found in the _rslurm_[jobname] folder.
The id of the Slurm job created by the sbatch command.
The number of cluster nodes used by that job.
A slurm_job
object.
In general, slurm_job
objects are created automatically as the output of
slurm_apply
or slurm_call
, but it may be necessary
to manually recreate one if the job was submitted in a different R session.