Given the ID for a completed or currently running SLURM job, return a tibble containing outputs from 'sacct'. In particular, returns information about job name, ID, user, status, and allocated and used memory and CPUs.

job_report(job_id)

Arguments

job_id

The ID associated with a finished or currently running SLURM job (character(1) or integer(1))

Value

A tibble with information about the requested job.

See also

Other monitoring and informational functions: job_info(), partition_info()

Author

Nicholas J. Eagles

Examples


#    Must be run in a SLURM environment
if (system("which sbatch") == 0) {
    job_df <- job_report("234904")

    #    Check max virtual memory reached by this job
    print(job_df$max_vmem_gb)
}