Skip to content

Commit d070bc9

Browse files
authored
update restart documentation
#7288 added support for task-specific `restart` policy. this PR updates the docs to reflect that.
1 parent dae5c3f commit d070bc9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

website/pages/docs/job-specification/restart.mdx

+10-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ description: The "restart" stanza configures a group's behavior on task failure.
77

88
# `restart` Stanza
99

10-
<Placement groups={['job', 'group', 'restart']} />
11-
12-
The `restart` stanza configures a group's behavior on task failure. Restarts
13-
happen on the client that is running the task.
10+
<Placement
11+
groups={[
12+
['job', 'group', 'restart'],
13+
['job', 'group', 'task', 'restart']
14+
]}
15+
/>
16+
17+
The `restart` stanza configures a tasks's behavior on task failure. Restarts
18+
happen on the client that is running the task. If specified at the group level,
19+
the configuration will apply to all tasks within the group.
1420

1521
```hcl
1622
job "docs" {

0 commit comments

Comments
 (0)