queue
The queue directive defines the queue to which tasks should be submitted, for executors that support queues. For example:
process hello {
queue 'long'
executor 'slurm'
script:
"""
your_command --here
"""
}
Some executors can accept multiple queue names as a comma-separated string:
queue 'short,long,cn-el6'
However, this is not generally supported by cloud executors such as AWS Batch, Azure Batch, and Google Batch.
See Executors to see which executors support this directive.