clustermq_logfile: Set a path for clustermq cluster job log files

View source: R/cluster.R

clustermq_logfileR Documentation

Set a path for clustermq cluster job log files

Description

Log files are optional for clustermq. The must be set in the template. This function will create a unique directory within the "base_dir". It will also return a path that you MUST use for the "log_file" parameter in the Q template. Moreover, the function will set the "clustermq.logfile" option to that directory (used by clustermq_get_logs).

Usage

clustermq_logfile(base_dir = "/ebio/abt3_scratch/")

Arguments

base_dir

The base directory will the logfiles will be located.

Details

The function requires the uuid package.

Value

logfile path

Examples

clustermq_setup()
tmpl = list(job_mem = '8G', log_file = clustermq_logfile())
fx = function(x, y) x * 2 + y
Q(fx, x=1:3, const=list(y=10), n_jobs=10, job_size=1, template=tmpl)

leylabmpi/LeyLabRMisc documentation built on Nov. 3, 2022, 3:45 p.m.