Skip to contents

Displays real-time CPU, memory, and log information for a running SLURM job in a continuously updating text interface.

Usage

script_top(job, refresh = 2, nlog = 30, clear = TRUE)

Arguments

job

A parade_script_job object

refresh

Refresh interval in seconds

nlog

Number of log lines to display

clear

Whether to clear screen between updates

Value

The input job object (invisibly)

Examples

# \donttest{
if (Sys.which("squeue") != "") {
  job <- submit_slurm("script.R")
  script_top(job, refresh = 5)
}
# }