This function returns the completion status of a Slurm job, its queue status if any and log outputs.




A slurm_job object.


A list with three elements: completed is a logical value indicating if all portions of the job have completed or stopped, queue

contains the information on job elements still in queue, and

log contains the console/error logs.


The queue element of the output is a data frame matching the output of the Slurm squeue command for that job; it will only indicate portions of job that are running or in queue. The log element is a vector of the contents of console/error output files for each node where the job is running.