label
The label directive attaches a custom label to the process. For example:
process hello {
label 'big_mem'
script:
"""
your_command --here
"""
}
A label may contain alphanumeric characters or _. It must start and end with an alphabetic character.
The same label can be applied to multiple processes. Multiple labels can be applied to the same process by using the label directive multiple times.
Process labels are used to apply shared process configuration via withLabel selectors. They are not recorded in execution logs, trace reports, or lineage metadata. See Process selectors for more information.
To tag individual task executions for logging and debugging, use tag. To tag cloud computing resources for cost tracking, use resourceLabels. To attach metadata labels to output files for lineage tracking, use the label output directive in the output block.