Skip to contents

Executes all tasks for a given batch id and writes a batch artifact to the staging directory. Workers never touch pins.

Usage

cs_run_batch(
  batch_id,
  plan,
  staging_dir,
  parallel = FALSE,
  experimental_parallel = FALSE,
  parallel_backend = NA_character_,
  parallel_warning_emitted = FALSE
)

Arguments

batch_id

Integer batch id to run.

plan

A tibble from cs_plan_campaign().

staging_dir

Directory to write the batch artifact.

parallel

Logical; TRUE when invoked from a parallel planned campaign.

experimental_parallel

Logical; must be TRUE when parallel = TRUE.

parallel_backend

Character backend label recorded in batch metadata.

parallel_warning_emitted

Logical provenance flag from the parent runner.

Value

The path to the staged RDS file (invisible).