From b2dea4ca5b37969a94c78d1070b5d5bb8c5f3d28 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Thu, 23 Jul 2020 11:33:34 -0700 Subject: [PATCH] docs: s/hearbeat/heartbeat and fix link Also fixed the same typo in a test. Fixing the typo fixes the link, but the link was still broken when running the website locally due to the trailing slash. It would have worked in prod thanks to redirects, but using the canonical URL seems ideal. --- client/heartbeatstop_test.go | 2 +- website/pages/docs/job-specification/group.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/heartbeatstop_test.go b/client/heartbeatstop_test.go index 86ba76410..86638cb01 100644 --- a/client/heartbeatstop_test.go +++ b/client/heartbeatstop_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" ) -func TestHearbeatStop_allocHook(t *testing.T) { +func TestHeartbeatStop_allocHook(t *testing.T) { t.Parallel() server, _, cleanupS1 := testServer(t, nil) diff --git a/website/pages/docs/job-specification/group.mdx b/website/pages/docs/job-specification/group.mdx index 7a51438d6..6a4faa282 100644 --- a/website/pages/docs/job-specification/group.mdx +++ b/website/pages/docs/job-specification/group.mdx @@ -83,7 +83,7 @@ job "docs" { will stop allocations based on this task group. By default, a client will not stop an allocation until explicitly told to by a server. A client that fails to heartbeat to a server within the - `hearbeat_grace` window and any allocations running on it will be + [`heartbeat_grace`] window and any allocations running on it will be marked "lost" and Nomad will schedule replacement allocations. However, these replaced allocations will continue to run on the non-responsive client; an operator may desire that these @@ -247,7 +247,7 @@ group "second" { [spread]: /docs/job-specification/spread 'Nomad spread Job Specification' [affinity]: /docs/job-specification/affinity 'Nomad affinity Job Specification' [ephemeraldisk]: /docs/job-specification/ephemeral_disk 'Nomad ephemeral_disk Job Specification' -[`heartbeat_grace`]: /docs/configuration/server/#heartbeat_grace +[`heartbeat_grace`]: /docs/configuration/server#heartbeat_grace [meta]: /docs/job-specification/meta 'Nomad meta Job Specification' [migrate]: /docs/job-specification/migrate 'Nomad migrate Job Specification' [network]: /docs/job-specification/network 'Nomad network Job Specification'