From 7c4d1a352cd7dce6c8f8bf1a6662f5d4f0dfaea6 Mon Sep 17 00:00:00 2001 From: Marguerite des Trois Maisons Date: Thu, 14 Jun 2018 13:53:50 -0400 Subject: [PATCH] Clarify defaults and behaviour of mode = fail in restart stanza --- website/source/docs/job-specification/restart.html.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/source/docs/job-specification/restart.html.md b/website/source/docs/job-specification/restart.html.md index 967fd033b..e3c109727 100644 --- a/website/source/docs/job-specification/restart.html.md +++ b/website/source/docs/job-specification/restart.html.md @@ -47,7 +47,7 @@ job "docs" { controlled by `mode`. This is specified using a label suffix like "30s" or "1h". Defaults vary by job type, see below for more information. -- `mode` `(string: "delay")` - Controls the behavior when the task fails more +- `mode` `(string: "fail")` - Controls the behavior when the task fails more than `attempts` times in an interval. For a detailed explanation of these values and their behavior, please see the [mode values section](#mode-values). @@ -95,4 +95,5 @@ restart { - `"fail"` - Instructs the scheduler to not attempt to restart the task on failure. This mode is useful for non-idempotent jobs which are unlikely to - succeed after a few failures. + succeed after a few failures. Failed jobs will be restarted according to + the [`reschedule`](/docs/job-specification/reschedule.html) stanza.