V16 Rerun after a correction
Use your current course session. Preparation and course runner · R script ↓
Optional deep dive. Enable only the options named in each block, after preparing its packages or services.
V16 Rerun after a correction
Goal: Provide prior results for reuse.
Prerequisites: V15.
Unchanged successful branches can be reused. Changed inputs and their consumers run again.
training_step(
"V16",
{
flow_corrected_data <- policies
flow_corrected_data$premium[1] <- 105
flow_second <- dr_run(
training_flow,
inputs = list(delivery = flow_corrected_data),
previous = flow_first
)
print(flow_second$status)
stopifnot(flow_first$results$total == 740, flow_second$results$total == 745)
},
needs = c("V15"),
enabled = training_options$extras,
optional = TRUE
)Expected result: A corrected total of 745.
Task: What happens to an earlier publication if a later step fails?
Show solution
There is no distributed transaction across the workflow. Completed publications remain.