Closed HenrikBengtsson closed 9 years ago
> library(future) > plan(eager) > backend("local") [1] "local" > x %<=% { 1 } %plan% batchjobs(backend="interactive") > x [1] 1 > backend() [1] "interactive"
Should it?
This is because batchjobs() does not undo the backend set, e.g.
batchjobs()
> backend() [1] "local" > f <- batchjobs({ 1 }, backend="interactive") > backend() [1] "interactive" > value(f) [1] 1 > backend() [1] "interactive"
This is in turn because BatchJobsAsyncTask({ 1 }, backend="interactive") does not undo it. Continuing, the problem occurs because of tempRegistry():
BatchJobsAsyncTask({ 1 }, backend="interactive")
tempRegistry()
> backend("local") [1] "local" > reg <- async:::tempRegistry(backend="interactive") Creating dir: /cbc/henrik/repositories/GitHub/async/.async/async28374250-files Loading required package: BatchJobs Loading required package: BBmisc Saving registry: /cbc/henrik/repositories/GitHub/async/.async/async28374250-files/registry.RData > backend() [1] "interactive"
Observation
Should it?
Troubleshooting
This is because
batchjobs()
does not undo the backend set, e.g.This is in turn because
BatchJobsAsyncTask({ 1 }, backend="interactive")
does not undo it. Continuing, the problem occurs because oftempRegistry()
: