Skip to main content

resourceLimits

Added in version 24.04

The resourceLimits directive defines environment-specific limits for task resource requests.

Resource limits can be specified in a process:

process hello {
resourceLimits cpus: 24, memory: 768.GB, time: 72.h

script:
"""
your_command --here
"""
}

Or in the Nextflow configuration:

process.resourceLimits = [
cpus: 24,
memory: 768.GB,
time: 72.h
]

Resource limits can be defined for the following directives:

When a task resource request exceeds the corresponding limit, the task resources are automatically reduced to comply with these limits before the job is submitted.

Resource limits are a useful way to prevent tasks with dynamic resources from requesting more resources than can be provided by an executor (e.g. a task requests 32 cores but the largest node in the cluster has 24).