job_log: Log for the running/finished/failed job

Description Usage Arguments Value Examples

View source: R/monitor.R

Description

Log for the running/finished/failed job

Usage

1
job_log(job_id, print = TRUE, n_line = 10)

Arguments

job_id

The job id. It can be a single job or a vector of job ids.

print

Whether print the log message.

n_line

Number of last lines for each job to show when multiple jobs are queried.

Value

The log message as a vector.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# a single job
job_id = 1234567  # job ids can be get from `bjobs`
job_log(job_id)
# multiple jobs
job_id = c(10000000, 10000001, 10000002) 
job_log(job_id)  # by  default last 10 lines for each job are printed
job_log(job_id, n_line = 20) # print last 20 lines for each job
# logs for all running jobs
job_log()

## End(Not run)

bsub documentation built on July 1, 2021, 5:07 p.m.