mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +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>
32 lines
1.1 KiB
Go
32 lines
1.1 KiB
Go
// Code generated by "stringer -trimprefix=Workload -output worker_string_schedulerworkerstatus.go -linecomment -type=SchedulerWorkerStatus"; 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[WorkloadUnknownStatus-0]
|
|
_ = x[WorkloadRunning-1]
|
|
_ = x[WorkloadWaitingToDequeue-2]
|
|
_ = x[WorkloadWaitingForRaft-3]
|
|
_ = x[WorkloadScheduling-4]
|
|
_ = x[WorkloadSubmitting-5]
|
|
_ = x[WorkloadBackoff-6]
|
|
_ = x[WorkloadStopped-7]
|
|
_ = x[WorkloadPaused-8]
|
|
}
|
|
|
|
const _SchedulerWorkerStatus_name = "UnknownStatusRunningWaitingToDequeueWaitingForRaftSchedulingSubmittingBackoffStoppedPaused"
|
|
|
|
var _SchedulerWorkerStatus_index = [...]uint8{0, 13, 20, 36, 50, 60, 70, 77, 84, 90}
|
|
|
|
func (i SchedulerWorkerStatus) String() string {
|
|
if i < 0 || i >= SchedulerWorkerStatus(len(_SchedulerWorkerStatus_index)-1) {
|
|
return "SchedulerWorkerStatus(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _SchedulerWorkerStatus_name[_SchedulerWorkerStatus_index[i]:_SchedulerWorkerStatus_index[i+1]]
|
|
}
|