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

get_job_status(slr_job)

Arguments

slr_job

A slurm_job object.

Value

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.

Details

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.