You received this message because you are subscribed to a topic in the Google Groups "Nextflow" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nextflow/mS5Lw4meg6c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nextflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nextflow/DM6PR12MB383555B5FBF9934A3533271CA0820%40DM6PR12MB3835.namprd12.prod.outlook.com.
As an aside, I know you can manipulate the memory request based on the task.attempt. Here is an example derived from something we do:process task_that_occasionally_needs_more_ram {cpus 8memory {16.GB * task.attempt }errorStrategy {task.attempt < 4 ? 'retry' : 'finish }maxRetries 4input: [...]
}
We let nextflow handle the details on how the memory allocations are specified for the executor. We use SLURM primarily, but we used to use SGE before we moved to Nextflow.Also, wouldn't task.exitstatus = 137 result in the your h_vmem being 137 bytes?probably solves your issue.
On Tue, Jun 9, 2020 at 8:33 AM Alan Hoyle <alan...@gmail.com> wrote:
Is there a reason you’re using clusterOptions to specify h_vmem rather than using process.memory and letting Nextflow figure out which options to send the executor?
--Alan Hoyle - al...@alanhoyle.com - alanhoyle.com
From: 'Sayantan Das' via Nextflow <next...@googlegroups.com>
Sent: Tuesday, June 9, 2020 3:43:15 AM
To: Nextflow <next...@googlegroups.com>
Subject: Simple question on Dynamic resource allocation in config file
Hi, I am not sure if I am doing something silly, but it seems that we can dynamically assign the attribute `errorStrategy` but we cannot do the same for `clusterOptions`. The following is throwing an error. Any help would be appreciate. It runs fine if I highlight the clusterOptions--
process {withLabel: sge_label {errorStrategy = { task.exitStatus in 137..140 ? 'retry' : 'terminate' }clusterOptions = "-l h_vmem="+task.exitStatus.toString().replaceAll(/[\sB]/,'')maxRetries = 3
}}
ERROR:
N E X T F L O W ~ version 20.01.0Launching `/home/sayantand/sci/analyses/hla_imputation_v2/src/nf/main.nf` [insane_sanger] - revision: 63e27b4ec0Unknown config attribute `process.withLabel:sge_label.task.exitStatus` -- check config file: /home/sayantand/sci/analyses/hla_imputation_v2/src/nf/nextflow.config
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to next...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nextflow/acd7244c-c122-4030-a5be-fdf3f0ddcb1fo%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Nextflow" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nextflow/mS5Lw4meg6c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nextflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nextflow/CADgKzdxji4aYsd5eR3m87QL9aAWXPiooq3P_j%2BwckUJCpyq8_Q%40mail.gmail.com.