I do the following to send a bunch of models to a compute server.
future waits for the first call to wrap, before the next is sent. How do I tell future that it can send multiple jobs to the remote at the same time?
This is clearly possible as I can send multiple jobs to the same remote from different local R sessions, or if I call plan(login)
again between calls. But how do I specify the topology so future doesn't wait and I don't have to repetitively call plan
?
library(future)
login <- tweak(remote, workers = "me@localcomputeserver.de")
plan(list(login))
bla %<-% { bla <- rnorm(1000); Sys.sleep(100); saveRDS(bla, file="bla.rds"); bla}
bla2 %<-% { bla2 <- rnorm(1000); Sys.sleep(100); saveRDS(bla2, file="bla2.rds"); bla2 }