Skip to content

Commit

Permalink
docs: fix alloc stop no_shutdown_delay
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Mar 1, 2023
1 parent 542b23e commit c416975
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion command/alloc_stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Stop Specific Options:
eval-status command.
-no-shutdown-delay
Ignore the the group and task shutdown_delay configuration so there is no
Ignore the the group and task shutdown_delay configuration so there is no
delay between service deregistration and task shutdown. Note that using
this flag will result in failed network connections to the allocation
being stopped.
Expand Down
7 changes: 7 additions & 0 deletions website/content/api-docs/allocations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,11 @@ The table below shows this endpoint's support for
must be the full UUID, not the short 8-character one. This is specified as
part of the path.

- `no_shutdown_delay` `(bool: false)` - Ignore the group and task
[`shutdown_delay`] configuration so that there is no delay between service
deregistration and task shutdown. Note that using this parameter will result
in failed network connections to the allocation being stopped.

### Sample Request

```shell-session
Expand Down Expand Up @@ -905,3 +910,5 @@ $ curl \
}
]
```

[`shutdown_delay`]: /nomad/docs/job-specification/group#shutdown_delay

0 comments on commit c416975

Please sign in to comment.