Skip to content

Commit

Permalink
docs: correct where task cannot be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez authored May 20, 2022
1 parent edf7b89 commit 626d1a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions website/content/docs/job-specification/service.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ Connect][connect] integration.
- `host` - Use the host IP and port.

- `task` `(string: "")` - Specifies the name of the Nomad task associated with
this service definition. Only available on group services. May only be set for
script or gRPC checks.
this service definition. Only available on group services. Must be set if this
service definition represents a Consul Connect-native service and there is more
than one task in the task group.

- `meta` <code>([Meta][]: nil)</code> - Specifies a key-value map that annotates
the Consul service with user-defined metadata. Only available where
Expand Down Expand Up @@ -296,7 +297,7 @@ scripts.
check. Scripts are executed within the task's environment, and
`check_restart` stanzas will apply to the specified task. For `checks` on group
level `services` only. Inherits the [`service.task`][service_task] value if not
set.
set. May only be set for script or gRPC checks.

- `timeout` `(string: <required>)` - Specifies how long Consul will wait for a
health check query to succeed. This is specified using a label suffix like
Expand Down

0 comments on commit 626d1a7

Please sign in to comment.