Skip to content

Commit

Permalink
Merge pull request #429 from ropensci/gc
Browse files Browse the repository at this point in the history
Use garbage collection in persistent scheduling
  • Loading branch information
wlandau-lilly authored Jun 22, 2018
2 parents 267f3c8 + e36f246 commit e4df333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/mclapply.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ mc_worker <- function(worker, config){
done_queue <- mc_get_done_queue(worker, config)
while (TRUE){
while (nrow(msg <- ready_queue$list(1)) < 1){
gc()
Sys.sleep(mc_wait)
}
if (identical(msg$message, "done")){
Expand Down

0 comments on commit e4df333

Please sign in to comment.