get_chunk: Get a chunk of work to do from a specified job

Description Usage Arguments Value

Description

Get a chunk of work to do from a specified job

Usage

1
2
3
get_chunk(worker_id, job_id = 1, worker_name = paste(Sys.info()["nodename"],
  worker_id, sep = ":"), nchunks = 1, con = NULL,
  nullchunk = NA_character_, ...)

Arguments

worker_id

The id of the worker requesting a chunk

job_id

The id of the job for which chunks are being requested

worker_name

The name of the worker requesting a chunk. Default: <nodename>:<worker_id>

nchunks

The number of chunks requested

con

The database connection to use for the chunk request or NULL to indicate that the function should make and close a connection just for this request.

nullchunk

The object to return if no chunks are returned

...

Other arguments for creating the connection when NULL

Value

A data.frame with nchunks rows (some of which may contain NAs) or if no chunks at all were available a matrix with nchunks rows and 1 column, filled with NAs.


jefferislab/Rgridengineswarm documentation built on May 19, 2019, 3:58 a.m.