Pass this pool to EsgStore$extract(pool = pool). Automatic HTTP fallback stays within its source's reader slot and retains interrupted transfers. Poll it from the store-owning process until each returned ticket has status "done" or "failed". Only that process writes extraction manifests and Parquet files. A pool serializes jobs for identical physical source content, independently of the extraction cache policy.

source_pool(
  workers = 4L,
  timeout = 180,
  output = FALSE,
  download_dir = NULL,
  download_timeout = NULL
)

Arguments

workers

Positive integer number of persistent readers.

timeout

Positive execution deadline in seconds for a dispatched source job. A timed-out reader is confirmed stopped before its source is reused.

output

Whether to forward reader standard output and standard error to the owning R process. Defaults to FALSE. Enable for native-library diagnostics that R message handlers cannot capture; this does not increase the worker count or change source exclusion and execution deadlines.

download_dir

Optional directory for recoverable HTTP fallback files. Defaults to each store's download directory. Use a persistent node-local directory to share verified files and partial transfers across stores.

download_timeout

Optional total HTTP transfer limit in seconds, at least timeout. When set, a transfer may exceed the ordinary source deadline while its retained file grows. No new bytes for timeout seconds still retires that reader. OPeNDAP reads keep the ordinary deadline.

Value

An opaque pool with poll(), status() and close() methods. Drain pending tickets before calling close().