From 3b4afea97416f046d6ce12c7ea29d4e11df8b3cb Mon Sep 17 00:00:00 2001 From: Vijesh Date: Fri, 19 Jan 2024 00:38:57 +1100 Subject: [PATCH] docs: note script checks don't support some Consul options (#19770) Script checks don't support Consul's `success_before_passing`, `failures_before_critical`, or `failures_before_warning` because they're run by Nomad and not by Consul --- website/content/docs/job-specification/check.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/content/docs/job-specification/check.mdx b/website/content/docs/job-specification/check.mdx index 98dd47bb2..c26f25a7a 100644 --- a/website/content/docs/job-specification/check.mdx +++ b/website/content/docs/job-specification/check.mdx @@ -93,15 +93,15 @@ job "example" { - `success_before_passing` `(int:0)` - The number of consecutive successful checks required before Consul will transition the service status to [`passing`][consul_success_before_passing]. - Only supported in the Consul service provider. + Only supported by the Consul service provider and not applicable for health checks of type "script". - `failures_before_critical` `(int:0)` - The number of consecutive failing checks required before Consul will transition the service status to [`critical`][consul_failure_before_critical]. - Only supported in the Consul service provider. + Only supported by the Consul service provider and not applicable for health checks of type "script". - `failures_before_warning` `(int:0)` - The number of consecutive failing checks required before Consul will transition the service status to [`warning`][consul_failure_before_warning]. - Only supported in the Consul service provider. + Only supported by the Consul service provider and not applicable for health checks of type "script". - `interval` `(string: )` - Specifies the frequency of the health checks that Consul or Nomad service provider will perform. This is specified using a label