open-nomad/nomad/deploymentwatcher
Tim Gross c14a75bfab multiregion: use pending instead of paused
The `paused` state is used as an operator safety mechanism, so that they can
debug a deployment or halt one that's causing a wider failure. By using the
`paused` state as the first state of a multiregion deployment, we risked
resuming an intentionally operator-paused deployment because of activity in a
peer region.

This changeset replaces the use of the `paused` state with a `pending` state,
and provides a `Deployment.Run` internal RPC to replace the use of the
`Deployment.Pause` (resume) RPC we were using in `deploymentwatcher`.
2020-06-17 11:06:14 -04:00
..
batcher.go deploymentwatcher: no batcher when disabling 2020-05-26 14:44:47 -04:00
deployment_watcher.go multiregion: integrate with deploymentwatcher 2020-06-17 11:06:00 -04:00
deployments_watcher.go multiregion: use pending instead of paused 2020-06-17 11:06:14 -04:00
deployments_watcher_test.go multiregion: integrate with deploymentwatcher 2020-06-17 11:06:00 -04:00
doc.go new deploymentwatcher/doc.go for package level documentation 2019-05-22 12:32:08 -04:00
multiregion_oss.go multiregion: use pending instead of paused 2020-06-17 11:06:14 -04:00
testutil_test.go tests: deflake deploymentwatcher package 2020-03-12 15:42:01 -04:00