Skip to content

Commit

Permalink
Better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Nov 6, 2024
1 parent af7d92a commit 09a5394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/runner-callr.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ monty_runner_callr <- function(n_workers, progress = NULL) {
}
}
}
env$progress$update(res$chain_id, env$n_steps_progress)
env$progress$update(env$chain_ids, env$n_steps_progress)

Check warning on line 74 in R/runner-callr.R

View check run for this annotation

Codecov / codecov/patch

R/runner-callr.R#L74

Added line #L74 was not covered by tests
}

all(env$status == "done")
Expand All @@ -84,6 +84,7 @@ monty_runner_callr <- function(n_workers, progress = NULL) {
env$sessions <- vector("list", n_workers)
env$target <- rep(NA_integer_, n_workers)
env$status <- rep("pending", n_chains)
env$chain_ids <- seq_len(n_chains)
env$result_path <- rep(NA_character_, n_chains)
env$n_steps <- steps$total
env$n_steps_progress <- rep(0, n_chains)
Expand Down

0 comments on commit 09a5394

Please sign in to comment.