is_job_finished: Test whether the jobs are finished

Description Usage Arguments Details Value Examples

View source: R/monitor.R

Description

Test whether the jobs are finished

Usage

1
is_job_finished(job_name, output_dir = bsub_opt$output_dir)

Arguments

job_name

A vector of job names.

output_dir

Output dir.

Details

It tests whether the ".done" flag files exist

Value

A logical scalar.

Examples

1
2
# There is no example
NULL

Example output

==================================================================
bsub version 1.0.2
Github page: https://github.com/jokergoo/bsub

- submit R code: `bsub_chunk()`
- submit R script: `bsub_script()`
- submit shell commands: `bsub_cmd()`
- kill jobs: `bkill()`
- view job summary: `bjobs`/`brecent`/`bjobs_running`/
                    `bjobs_pending`/`bjobs_done`/`bjobs_exit`
- view job log: `job_log()`
- remove temporary files : `clear_temp_dir()`/`check_dump_files()`
- interactive job monitor: `monitor()`

`bsub_chunk()`/`bsub_script()`/`bsub_cmd()` should only be
applied on the node that has the same file system as the computing
nodes. Other functions for monitoring and cleaning jobs can be
applied on any computer.
==================================================================
!! The temp_dir (~/.bsub_temp) does not exist.
!! The directory can be created manually, or by setting a value to
!! `bsub_opt$temp_dir`, or by the first call of `bsub_*()`.
NULL

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