Skip to content

Commit

Permalink
Avoid submitting imports as future_lapply jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Oct 28, 2017
1 parent e1d9daf commit 041bb50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/future.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ run_future_lapply <- function(config){
}

worker_future_lapply <- function(targets, hash_list, config){
targets <- intersect(targets, config$plan$target)
if (!length(targets)){
return()
}
future::future_lapply(
x = targets,
FUN = build_distributed,
Expand Down

0 comments on commit 041bb50

Please sign in to comment.