Skip to content

Commit

Permalink
Use mclapply with 1 core for validate
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Feb 19, 2024
1 parent 1083faa commit 64fd3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/dashboardFuns.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ validate_metadata <- function(metadata, project.scope, schematic_api, schema_url
if (nrow(metadata) == 0) {
return(metadata)
}
m2 <- lapply(1:nrow(metadata), function(i) {
m2 <- parallel::mclapply(1:nrow(metadata), function(i) {
manifest <- metadata[i, ]
cat(paste0("validating ", manifest$Path, "\n"))
if (is.na(manifest$Component)) {
Expand Down

0 comments on commit 64fd3a4

Please sign in to comment.