From 607c0de53fb753fe71f9a150c8a94bdabf2feb1c Mon Sep 17 00:00:00 2001 From: lens0021 Date: Tue, 8 Oct 2024 00:31:48 +0900 Subject: [PATCH] fastcgi: No task level restart --- jobs/fastcgi.nomad | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jobs/fastcgi.nomad b/jobs/fastcgi.nomad index 372fe5e..921e886 100644 --- a/jobs/fastcgi.nomad +++ b/jobs/fastcgi.nomad @@ -219,7 +219,7 @@ job "fastcgi" { } restart { - mode = "delay" + attempts = 0 } } @@ -227,7 +227,8 @@ job "fastcgi" { auto_revert = true auto_promote = var.green ? true : false # canary count equal to the desired count allows a Nomad job to model blue/green deployments - canary = var.green ? 1 : 0 + canary = var.green ? 1 : 0 + progress_deadline = "1h" } }