mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 08:25:43 +03:00
## Development Environment Changes
* Added stringer to build deps
## New HTTP APIs
* Added scheduler worker config API
* Added scheduler worker info API
## New Internals
* (Scheduler)Worker API refactor—Start(), Stop(), Pause(), Resume()
* Update shutdown to use context
* Add mutex for contended server data
- `workerLock` for the `workers` slice
- `workerConfigLock` for the `Server.Config.NumSchedulers` and
`Server.Config.EnabledSchedulers` values
## Other
* Adding docs for scheduler worker api
* Add changelog message
Co-authored-by: Derek Strickland <1111455+DerekStrickland@users.noreply.github.com>
31 lines
959 B
Go
31 lines
959 B
Go
// Code generated by "stringer -trimprefix=Worker -output worker_string_workerstatus.go -linecomment -type=WorkerStatus"; DO NOT EDIT.
|
|
|
|
package nomad
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[WorkerUnknownStatus-0]
|
|
_ = x[WorkerStarting-1]
|
|
_ = x[WorkerStarted-2]
|
|
_ = x[WorkerPausing-3]
|
|
_ = x[WorkerPaused-4]
|
|
_ = x[WorkerResuming-5]
|
|
_ = x[WorkerStopping-6]
|
|
_ = x[WorkerStopped-7]
|
|
}
|
|
|
|
const _WorkerStatus_name = "UnknownStartingStartedPausingPausedResumingStoppingStopped"
|
|
|
|
var _WorkerStatus_index = [...]uint8{0, 7, 15, 22, 29, 35, 43, 51, 58}
|
|
|
|
func (i WorkerStatus) String() string {
|
|
if i < 0 || i >= WorkerStatus(len(_WorkerStatus_index)-1) {
|
|
return "WorkerStatus(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _WorkerStatus_name[_WorkerStatus_index[i]:_WorkerStatus_index[i+1]]
|
|
}
|