maxForks
The maxForks directive defines the maximum number of concurrent task executions for a process.
Usage
For example:
process hello {
maxForks 1
script:
"""
your_command --here
"""
}
This example forces the hello process to execute tasks sequentially.
By default, the number of concurrent task executions is unlimited. However, the number of concurrent tasks can still be limited globally by the number of CPUs (for local tasks) and the executor.queueSize config option.