diff --git a/CHANGELOG.md b/CHANGELOG.md index 03fbb622d58..3aa3df85fd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ __BACKWARDS INCOMPATIBILITIES:__ to update your code. [[GH-5536](https://github.com/hashicorp/nomad/pull/5536)] * client: The format of check IDs in Consul has changed. If you rely upon Nomad's check IDs you will need to update your code. [[GH-5536](https://github.com/hashicorp/nomad/pull/5536)] + * client: On startup a client will reattach to running tasks as before but + will not restart exited tasks. Exited tasks will be restarted only after the + client has reestablished communication with servers. System jobs will always + be restarted. [[GH-5669](https://github.com/hashicorp/nomad/pull/5669)] FEATURES: diff --git a/client/allocrunner/taskrunner/task_runner.go b/client/allocrunner/taskrunner/task_runner.go index e88487431f7..8fe87cf3647 100644 --- a/client/allocrunner/taskrunner/task_runner.go +++ b/client/allocrunner/taskrunner/task_runner.go @@ -195,8 +195,7 @@ type TaskRunner struct { maxEvents int // serversContactedCh is passed to TaskRunners so they can detect when - // servers have been contacted for the first time in case of a failed - // restore. + // GetClientAllocs has been called in case of a failed restore. serversContactedCh <-chan struct{} // waitOnServers defaults to false but will be set true if a restore