-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
originally posted in #153 by @nick-youngblut
I'm a big fan of snakemake, which allows for automatic resubmission of failed jobs with increased resources (eg., mem = lambda wildcards, threads, attempt: attempt * 8 # Gb of memory doubles per attempt). It would be really awesome to have that feature in clustermq. For example, one could provide a function instead of a value for the template:
tmpl = list(job_mem = function(attempt) attempt * 8)
fx = function(x, y) x * 2 + y
Q(fx, x=1:10, const=list(y=10), n_jobs=10, job_size=1, template=tmpl)One would also need a max_attempts parameter for Q().
wlandau, rpodcast and nick-youngblut