Watch a deferred pipeline and log errors incrementally
parade_watch.RdPolls deferred_errors() and deferred_status() every interval
seconds. Only appends new errors to the log (deduplicates via in-memory
signature set). Writes a [DONE] summary when all chunks complete.
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", within = "sequential"))
d <- submit(fl)
#> [parade] submit prune: scanning 2 groups for cached outputs
#> [parade] submit prune complete in 0.0s (0 pruned, 2 pending)
parade_watch(d, interval = 5, log_path = NULL)
unlink(c(paths_get()$registry, paths_get()$artifacts), recursive = TRUE)
unlink("parade.log")
# }