mirror of
https://github.com/kemko/nomad.git
synced 2026-01-15 14:55:41 +03:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user