maxForks
The maxForks directive defines the maximum number of concurrent task executions for a process. For example:
process hello {
maxForks 1
script:
"""
your_command --here
"""
}
The above example forces the hello process to execute tasks sequentially.
By default, there is no limit. 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.