get_job_status: Get the status of a Slurm job

View source: R/get_job_status.R

get_job_statusR Documentation

Get the status of a Slurm job

Description

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

Usage

get_job_status(slr_job)

Arguments

slr_job

A slurm_job object.

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.

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.


rslurm documentation built on March 7, 2023, 5:37 p.m.