Skip to content

Commit

Permalink
update restart documentation
Browse files Browse the repository at this point in the history
#7288 added support for task-specific `restart` policy. this PR updates the docs to reflect that.
  • Loading branch information
cgbaker committed Apr 2, 2020
1 parent dae5c3f commit d070bc9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions website/pages/docs/job-specification/restart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit d070bc9

Please sign in to comment.