Running the last process of a pipeline in serial on local executor

114 views
Skip to first unread message

Célie Ds

unread,
Mar 12, 2021, 11:00:06 AM3/12/21
to Nextflow
Hi there, 

I am new in Nextflow and I am having  an issue that I can't figure out.
Basically, all the processes in my pipeline are executed in a parallel manner, which is fine. However, the last process that need to be executed requires a large amount of free memory (RAM) to work. The issue is that the pipeline crash when running in parallel because there is not enough RAM in the servor to execute it simultaneously on multiple sample.... This way, I was wondering if there was a way to switch from a parallel execution to a serial one on local executor, for this last process. 

Can anybody helps me with this ? 

Thank you, 

Bests,  

Célie

Sam

unread,
Mar 12, 2021, 8:29:09 PM3/12/21
to Nextflow
maybe maxForks is what you want

Theo

unread,
Mar 13, 2021, 11:31:30 AM3/13/21
to next...@googlegroups.com
Have you tried to creat a config file that will state for each individual process to run as parallel or as local?
You would need to create an entry like the following:
process {
 withlabel: 'parallel' {
                   executor = "SGE"
                    }

withlabel: 'local' {
                   cpus = 1
                   memory = 120.GB
                    }
                 }



--
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 nextflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nextflow/a1d4907c-9df0-49d3-93cd-62f160652bdcn%40googlegroups.com.

Célie Ds

unread,
Mar 15, 2021, 4:09:37 AM3/15/21
to Nextflow
It worked well with maxForks. 
Thanks you for all of your reply :) 

Reply all
Reply to author
Forward
0 new messages