From 1192f6e833bfbb4d81214d7f3403113f99b92c48 Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Wed, 28 Aug 2024 18:10:20 +0200 Subject: [PATCH] change default behavior upon job completion (#84) --- .../src/main/nextflow/nomad/config/NomadJobOpts.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nf-nomad/src/main/nextflow/nomad/config/NomadJobOpts.groovy b/plugins/nf-nomad/src/main/nextflow/nomad/config/NomadJobOpts.groovy index 1a1fb28..10ef8d3 100644 --- a/plugins/nf-nomad/src/main/nextflow/nomad/config/NomadJobOpts.groovy +++ b/plugins/nf-nomad/src/main/nextflow/nomad/config/NomadJobOpts.groovy @@ -57,7 +57,7 @@ class NomadJobOpts{ sysEnv = env ?: new HashMap(System.getenv()) deleteOnCompletion = nomadJobOpts.containsKey("deleteOnCompletion") ? - nomadJobOpts.deleteOnCompletion : false + nomadJobOpts.deleteOnCompletion : true if( nomadJobOpts.containsKey("datacenters") ) { datacenters = ((nomadJobOpts.datacenters instanceof List ? nomadJobOpts.datacenters : nomadJobOpts.datacenters.toString().split(",")) @@ -177,4 +177,4 @@ class NomadJobOpts{ } } -} \ No newline at end of file +}