Skip to content

Commit 8ae8f61

Browse files
committed
Merge branch 'master' of github.com:hashicorp/nomad
2 parents 25ada7b + b0108e6 commit 8ae8f61

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Nomad [![Build Status](https://travis-ci.org/hashicorp/nomad.svg)](https://travis-ci.org/hashicorp/nomad) [![Build status](https://ci.appveyor.com/api/projects/status/i748vuqet037ojo3?svg=true)](https://ci.appveyor.com/project/hashicorp/nomad) [![Join the chat at https://gitter.im/hashicorp-nomad/Lobby](https://badges.gitter.im/hashicorp-nomad/Lobby.svg)](https://gitter.im/hashicorp-nomad/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1+
Nomad [![Build Status](https://travis-ci.org/hashicorp/nomad.svg)](https://travis-ci.org/hashicorp/nomad) [![Join the chat at https://gitter.im/hashicorp-nomad/Lobby](https://badges.gitter.im/hashicorp-nomad/Lobby.svg)](https://gitter.im/hashicorp-nomad/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
22
=========
33
- Website: https://www.nomadproject.io
44
- Mailing list: [Google Groups](https://groups.google.com/group/nomad-tool)

nomad/deploymentwatcher/deployment_watcher.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (w *deploymentWatcher) watch() {
295295
// something to change past what the scheduler has evaluated.
296296
allocResp, err := w.getAllocs(allocIndex)
297297
if err != nil {
298-
if err == context.Canceled {
298+
if err == context.Canceled || w.ctx.Err() == context.Canceled {
299299
return
300300
}
301301

@@ -307,7 +307,7 @@ func (w *deploymentWatcher) watch() {
307307
// Get the latest evaluation index
308308
latestEval, err := w.latestEvalIndex()
309309
if err != nil {
310-
if err == context.Canceled {
310+
if err == context.Canceled || w.ctx.Err() == context.Canceled {
311311
return
312312
}
313313

nomad/deploymentwatcher/deployments_watcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (w *Watcher) watchDeployments() {
170170
// Block getting all deployments using the last deployment index.
171171
resp, err := w.getDeploys(dindex)
172172
if err != nil {
173-
if err == context.Canceled {
173+
if err == context.Canceled || w.ctx.Err() == context.Canceled {
174174
return
175175
}
176176

0 commit comments

Comments
 (0)