From f9592dc668cc78c2fb7f784c0efdb923c4ddc148 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 7 Sep 2015 12:47:48 -0700 Subject: [PATCH] nomad: adding fields to cause an evaluation to 'wait' --- nomad/structs/structs.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index 4dc6da027..b6e4d9227 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -1069,6 +1069,18 @@ type Evaluation struct { // StatusDescription is meant to provide more human useful information StatusDescription string + // Wait is a minimum wait time for running the eval. This is used to + // support a rolling upgrade. + Wait time.Duration + + // NextEval is the evaluation ID for the eval created to do a followup. + // This is used to support rolling upgrades, where we need a chain of evaluations. + NextEval string + + // PreviousEval is the evaluation ID for the eval creating this one to do a followup. + // This is used to support rolling upgrades, where we need a chain of evaluations. + PreviousEval string + // Raft Indexes CreateIndex uint64 ModifyIndex uint64