wait_for_job: Wait for a running job

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This function sleeps until a job finishes. It can be used to "queue" jobs on the user side.

Usage

1
wait_for_job(job, odb_cfg = odb_config(), verbose = TRUE, interval = 10)

Arguments

job

Either a number representing a job id, or the response from a odb_import_* call

odb_cfg

list. A configuration object, as generated by odb_config

verbose

logical. Should this function print job progress to screen?

interval

numeric, time in seconds between prints

Value

data.frame, the final job object is silently returned to the user

Examples

1
2
3
4
## Not run: 
 wait_for_job(odb_import_locations(data, cfg), cfg)

## End(Not run)

opendatabio/opendatabio-r documentation built on Sept. 27, 2021, 1:32 a.m.