mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
switch to new raft DesiredTransition message
This commit is contained in:
@@ -81,7 +81,7 @@ type Allocation struct {
|
||||
Metrics *AllocationMetric
|
||||
DesiredStatus string
|
||||
DesiredDescription string
|
||||
DesiredTransistion DesiredTransistion
|
||||
DesiredTransition DesiredTransition
|
||||
ClientStatus string
|
||||
ClientDescription string
|
||||
TaskStates map[string]*TaskState
|
||||
@@ -207,10 +207,10 @@ type RescheduleEvent struct {
|
||||
PrevNodeID string
|
||||
}
|
||||
|
||||
// DesiredTransistion is used to mark an allocation as having a desired state
|
||||
// transistion. This information can be used by the scheduler to make the
|
||||
// DesiredTransition is used to mark an allocation as having a desired state
|
||||
// transition. This information can be used by the scheduler to make the
|
||||
// correct decision.
|
||||
type DesiredTransistion struct {
|
||||
type DesiredTransition struct {
|
||||
// Migrate is used to indicate that this allocation should be stopped and
|
||||
// migrated to another node.
|
||||
Migrate *bool
|
||||
|
||||
Reference in New Issue
Block a user