Skip to main content

queue

The queue directive defines the queue where tasks are submitted, for executors that support queues.

Usage

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.

Executor support

This directive is only used by executors that support queues. See Executors for the executors that support this directive.