From 81228cc97d17a952b00db8bc4bcaf8a5583bc891 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 12 Apr 2024 08:36:33 +0200 Subject: [PATCH] Use new check settings --- example/immich.nomad.hcl | 3 +-- immich.nomad.hcl | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/example/immich.nomad.hcl b/example/immich.nomad.hcl index 4b4adb9..e9594a3 100644 --- a/example/immich.nomad.hcl +++ b/example/immich.nomad.hcl @@ -74,7 +74,7 @@ job "immich" { path = "/api/server-info/ping" expose = true interval = "30s" - timeout = "15s" + timeout = "5s" check_restart { limit = 10 grace = "300s" @@ -280,7 +280,6 @@ _EOT config { image = "danielberteaud/valkey:24.4-1" readonly_rootfs = true - force_pull = true pids_limit = 100 args = ["/local/valkey.conf"] } diff --git a/immich.nomad.hcl b/immich.nomad.hcl index cd8ef7b..820fae1 100644 --- a/immich.nomad.hcl +++ b/immich.nomad.hcl @@ -24,8 +24,8 @@ job "[[ .instance ]]" { type = "http" path = "/api/server-info/ping" expose = true - interval = "30s" - timeout = "15s" + interval = "[[ $c.consul.check.interval ]]" + timeout = "[[ $c.consul.check.timeout ]]" check_restart { limit = 10 grace = "300s"