time
The time directive defines the maximum runtime for each task. For example:
process hello {
time 1.h
script:
"""
your_command --here
"""
}
The following suffixes can be used to specify duration values:
ms: millisecondss: secondsm: minutesh: hoursd: days
See Duration for more information.
note
This directive is only used by certain executors. Refer to the Executors page to see which executors support this directive.
See also: cpus, disk, memory, queue, dynamic task resources