From f66bd95fbbb8c6f517e9096c10efe19ebc6245d6 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 2 Aug 2023 21:33:16 -0700 Subject: [PATCH] Run backup batches on all hosts --- services/backups/backup.nomad | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/services/backups/backup.nomad b/services/backups/backup.nomad index c3c4c68..90c989a 100644 --- a/services/backups/backup.nomad +++ b/services/backups/backup.nomad @@ -18,14 +18,7 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" { } %{ endif ~} - %{ if batch_node == null ~} - constraint { - attribute = "$${node.unique.name}" - operator = "set_contains_any" - # Only deploy to nodes running tasks to backup - value = "n1,n2" - } - %{ else ~} + %{ if batch_node != null ~} constraint { attribute = "$${node.unique.name}" value = "${batch_node}"