Unverified Commit d070bc97 authored by Chris Baker's avatar Chris Baker Committed by GitHub
Browse files

update `restart` documentation

#7288 added support for task-specific `restart` policy. this PR updates the docs to reflect that.
parent dae5c3f4
Showing with 10 additions and 4 deletions
+10 -4
......@@ -7,10 +7,16 @@ description: The "restart" stanza configures a group's behavior on task failure.
# `restart` Stanza
<Placement groups={['job', 'group', 'restart']} />
The `restart` stanza configures a group's behavior on task failure. Restarts
happen on the client that is running the task.
<Placement
groups={[
['job', 'group', 'restart'],
['job', 'group', 'task', 'restart']
]}
/>
The `restart` stanza configures a tasks's behavior on task failure. Restarts
happen on the client that is running the task. If specified at the group level,
the configuration will apply to all tasks within the group.
```hcl
job "docs" {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment