Skip to content

Commit

Permalink
change default behavior upon job completion (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi18av committed Aug 28, 2024
1 parent e38b31f commit 1192f6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class NomadJobOpts{
sysEnv = env ?: new HashMap<String,String>(System.getenv())

deleteOnCompletion = nomadJobOpts.containsKey("deleteOnCompletion") ?
nomadJobOpts.deleteOnCompletion : false
nomadJobOpts.deleteOnCompletion : true
if( nomadJobOpts.containsKey("datacenters") ) {
datacenters = ((nomadJobOpts.datacenters instanceof List<String> ?
nomadJobOpts.datacenters : nomadJobOpts.datacenters.toString().split(","))
Expand Down Expand Up @@ -177,4 +177,4 @@ class NomadJobOpts{
}
}

}
}

0 comments on commit 1192f6e

Please sign in to comment.