×

nf-nomad @ 0.5.0-edge1

Provider: nextflow-io
Claimed: 05 Sep 2025 07:05:53 (UTC)
Description: This plugin enables Nextflow to submit and execute workflow tasks on HashiCorp Nomad, a flexible cluster orchestration platform. It solves the problem of integrating Nextflow pipelines with Nomad infrastructure by providing fine-grained control over resource allocation, datacenters, scheduling constraints, and job prioritization. DevOps teams and bioinformaticians managing distributed computing workloads on Nomad clusters would use this plugin to run complex data processing pipelines.
Latest version: 0.5.0-edge3
Total downloads: 6.9K View trends

Summary

This plugin implements a Nextflow executor for Hashicorp Nomad, enabling Nextflow pipelines to submit and manage tasks on Nomad clusters. It supports distributed work directories, custom job naming, security configurations, and comprehensive process-level Nomad options for fine-grained task placement and resource management.

Get Started

To use this plugin in your Nextflow pipeline, add the following to your nextflow.config file:

plugins {
    id 'nf-nomad'
}

process {
    executor = 'nomad'
}

nomad {
    client {
        address = 'http://your-nomad-server:4646'
    }
}

For testing environments, run unit tests with:

./gradlew check

Test environment selection supports different configurations:

./gradlew test                                    # unit tests only
./gradlew test -PtestEnv=mock                    # unit + mock tests
./gradlew test -PtestEnv=local                   # unit + local Nomad integration tests
./gradlew test -PtestEnv=oci                     # unit + OCI Nomad integration tests
./gradlew test -PtestEnv=local -PnomadAddr=http://<host>:4646  # custom endpoint

Examples

The following example demonstrates how to configure a Nextflow pipeline to target a specific process to run on Nomad with customized datacenters and resource limits:

// nextflow.config
plugins {
  id 'nf-nomad'
}

process {
  executor = 'nomad'
  
  withName: runAlignment {
    nomadOptions = [
      datacenters: ['dc-analytics'],
      priority: 'high',
      resources: [
        cores: 8,
        memoryMax: '32 GB'
      ]
    ]
  }
}

Advanced process-level Nomad options with comprehensive configuration:

process {
  withName: sayHello {
    nomadOptions = [
      datacenters: ['dc1', 'dc2'],
      namespace: 'bio',
      constraints: { node { unique = [name: params.RUN_IN_NODE] } },
      affinity: [attribute: '${meta.workload}', operator: '=', value: 'batch', weight: 25],
      meta: [owner: 'team-x', step: 'align'],
      shutdownDelay: '15s',
      failures: [
        restart: [attempts: 1, delay: '5s', mode: 'fail'],
        reschedule: [attempts: 2, delay: '10s']
      ],
      volumes: [[type: 'host', name: 'ref-data', path: '/ref', readOnly: true]],
      secretsPath: 'secret/projects/team-x',
      secrets: ['MY_ACCESS_KEY', 'MY_SECRET_KEY'],
      spread: [name: 'node.datacenter', weight: 50, targets: ['us-east1': 70, 'us-east2': 30]],
      priority: 'high',
      resources: [memoryMax: '64 GB', cores: 4, device: [[name: 'nvidia/gpu', count: 1]]]
    ]
  }
}

To run end-to-end tests with nf-test:

./gradlew clean installPlugin -Pversion=99.99.99
cd docker && sudo ./start.sh
source /mtp/nomad/nomad_temp/.env
cd ../src/e2e && NXF_ASSETS=/tmp/nomad/nomad_temp/scratchdir/assets ./nf-test test

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Nextflow version >=26.04.3
Depends On -
Release Date 07 Jun 2026 10:40:59 (UTC)
Release Notes https://github.com/nextflow-io/nf-nomad/releases/tag/0.5.0-edge1
Download URL https://registry.nextflow.io/api/v1/plugins/nf-nomad/0.5.0-edge1/download/nf-nomad-0.5.0-edge1.zip
Store URL https://public.cr.seqera.io/v2/nextflow/plugin/nf-nomad/blobs/sha256:629fa7e4390b57ef5b09bec56d690d2f3eb4069105bcf6ea6464451ff6b2506a
Size 4.6 MB
Checksum cfc4b558d0217dbed96ab304a41f1c7e9bbf73653abeb16641a8b42f1ef1ea3e80e5b07c357c571a8c8341cabe5b41ae7363e688f6ee1c9c701979fdad950a50
Total downloads 7 View trends
Security Scan
Version Nextflow version Date Status Downloads
0.5.0-edge3 >=26.04.3 03 Aug 2026 15:14:20 (UTC) 8
0.4.4 >=26.04.3 30 Jun 2026 19:58:39 (UTC) 50
0.5.0-edge2 >=26.04.3 30 Jun 2026 12:01:45 (UTC) 3
0.4.3 >=26.04.3 30 Jun 2026 11:03:49 (UTC) 4
0.4.2 >=26.04.3 30 Jun 2026 10:19:54 (UTC) 2
0.4.1 >=25.10.4 17 Jun 2026 08:43:43 (UTC) 730
0.5.0-edge1 >=26.04.3 07 Jun 2026 10:40:59 (UTC) 7
0.4.0 >=25.10.4 06 Jun 2026 06:42:08 (UTC) 204
0.4.0-edge8 >=25.10.4 04 Jun 2026 06:43:24 (UTC) 35
0.4.0-edge7 >=25.10.4 26 May 2026 09:52:03 (UTC) 104
0.4.0-edge6 >=25.10.4 25 May 2026 16:58:35 (UTC) 3
0.4.0-edge5 >=25.10.0 21 May 2026 14:13:53 (UTC) 25
0.4.0-edge4 >=25.10.0 11 May 2026 13:00:53 (UTC) 11
0.4.0-edge3 >=25.10.0 17 Mar 2026 15:44:41 (UTC) 4.5K
0.4.0-edge2 >=25.10.0 25 Oct 2025 17:01:39 (UTC) 53
0.4.0-edge1 >=24.10.4 12 Sep 2025 10:23:30 (UTC) 10
0.3.1 >=24.01.0-edge 08 Dec 2024 19:12:13 (UTC) 174