Merge pull request #4418 from margueritepd/restart-stanza-docs-update

Clarify defaults and behaviour of mode = fail in restart stanza in documentation
This commit is contained in:
Preetha
2018-06-19 10:11:48 -05:00
committed by GitHub

View File

@@ -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.