Skip to content

parallelMap with Batchtools backend fails when logging is enabled. #92

@mb706

Description

@mb706
parallelStartBatchtools(logging = TRUE, storagedir = "paralleltmp", show.info = TRUE)
pmresult = parallelMap(function(x)  list(result = x * x + 1, info = Sys.getenv()), 1:10, show.info = TRUE)

gives error

Mapping in parallel: mode = batchtools; level = NA; cpus = NA; elements = 10.
Error in `$<-.data.frame`(x, name, value) : 
  replacement has 0 rows, data has 10

This is I believ an error here:

x$log.file = file.path(reg$file.dir, "logs", sprintf("%s.log", x$job.hash))

where x does not have the entry job.hash. Maybe the API changed between Batchtools and BatchJobs and this was copied and never tested?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions