Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Merge pull request #17 from jayqi/feature/intermediate-cache-clearing
Browse files Browse the repository at this point in the history
Intermediate cache clearing
  • Loading branch information
cwschultz88 authored Sep 12, 2018
2 parents b8a8042 + 7161039 commit d7a9453
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 80 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Suggests:
VignetteBuilder: knitr
License: file LICENSE
LazyData: NA
RoxygenNote: 6.0.1
RoxygenNote: 6.1.0
12 changes: 11 additions & 1 deletion R/execution.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,17 @@ Execute <- function(workflow
}
}

#TODO: clear cached output in modules when not needed anymore
if (clearCache){
# Clear cached output in any upstream modules where all of its downstream
# dependencies are complete
for (upstreamModule in upstreamModules) {
if (workflow$hasCompletedAllDownstreamModules(upstreamModule)) {
upstreamModule$clearOutputCache()
}
}
}


}
modulesToExecute <- modulesToExecute[as.logical(lapply(modulesToExecute, is.Module))] # clears out NaNs when modules moved from modulesToExecute to modulesToExecute
}
Expand Down
Loading

0 comments on commit d7a9453

Please sign in to comment.