Skip to content

Commit

Permalink
Marshal pipeline at the right time
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Apr 14, 2024
1 parent 9979bf4 commit 83c00c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/class_clustermq.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ clustermq_class <- R6::R6Class(
length(need_workers) > 0L
},
run_worker = function(target) {
builder_marshal_subpipeline(target)
if (self$garbage_collection) {
gc()
}
Expand Down Expand Up @@ -161,7 +162,6 @@ clustermq_class <- R6::R6Class(
run_target = function(name) {
target <- pipeline_get_target(self$pipeline, name)
target_prepare(target, self$pipeline, self$scheduler, self$meta)
builder_marshal_subpipeline(target)
self$sync_meta_time()
if_any(
target_should_run_worker(target),
Expand Down
2 changes: 1 addition & 1 deletion R/class_future.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ future_class <- R6::R6Class(
self$worker_list <- memory_init()
},
run_worker = function(target) {
builder_marshal_subpipeline(target)
if (self$garbage_collection) {
gc()
}
Expand Down Expand Up @@ -162,7 +163,6 @@ future_class <- R6::R6Class(
run_target = function(name) {
target <- pipeline_get_target(self$pipeline, name)
target_prepare(target, self$pipeline, self$scheduler, self$meta)
builder_marshal_subpipeline(target)
self$sync_meta_time()
if_any(
target_should_run_worker(target),
Expand Down

0 comments on commit 83c00c4

Please sign in to comment.