HenrikBengtsson / future.batchtools

:rocket: R package future.batchtools: A Future API for Parallel and Distributed Processing using batchtools
https://future.batchtools.futureverse.org
84 stars 9 forks source link

BUG in future.batchtools (= 0.7.0): Error in readLog(id, reg = reg) #22

Closed HenrikBengtsson closed 6 years ago

HenrikBengtsson commented 6 years ago

I introduced a bug in future.batchtools (= 0.7.0) released on 2018-05-04. I can reproduce it on a Torque/PBS cluster, but not on an SGE cluster although I expect that it could/should appear everywhere. Example:

library(future.batchtools)
plan(batchtools_torque)
y <- future.apply::future_lapply(1:3, FUN = identity)
# Error in readLog(id, reg = reg) :
#   Log file for job with id 1 not available

This should have been caught by my local pre-release tests, but due to a mistake of mine I've disabled the tests that actually run future.batchtools on HPC schedulers. The only tests running was relying on the batchtools_local backend.

HenrikBengtsson commented 6 years ago

This has been fixed in the develop branch. Install as:

remotes::install_github("HenrikBengtsson/future.batchtools@develop")