Comprehensive error detection for a deferred pipeline
deferred_errors.RdCombines three error sources into a single tibble:
Index errors: Rows where
.diaghasok=FALSESLURM crashes: Jobs in FAILED/CANCELLED/TIMEOUT state
Missing indices: SLURM job COMPLETED but no index file written
Value
A tibble with columns: chunk_id, row, stage, error_msg,
source (one of "index", "slurm", "missing"), and context
Examples
# \donttest{
grid <- data.frame(x = 1:4, group = rep(c("A", "B"), 2))
fl <- flow(grid) |>
stage("calc", function(x) x^2, schema = returns(result = dbl())) |>
distribute(dist_local(by = "group"))
d <- submit(fl)
deferred_await(d, timeout = 60)
errs <- deferred_errors(d)
# }