From 08d1b4e18a43ef29ea3ce06de65d7f8dfc1bc331 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Wed, 4 Dec 2019 15:44:03 -0500 Subject: [PATCH] it's running now --- nomad/structs/structs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index a01fdc8a6..a896aa0d9 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -4387,7 +4387,7 @@ func (d *DispatchPayloadConfig) Validate() error { const ( TaskLifecycleHookPrestart = "prestart" - TaskLifecycleBlockUntilStarted = "started" + TaskLifecycleBlockUntilRunning = "running" TaskLifecycleBlockUntilCompleted = "completed" TaskLifecycleDeadlineMinimum = 0 * time.Second ) @@ -4419,7 +4419,7 @@ func (d *TaskLifecycleConfig) Validate() error { } switch d.BlockUntil { - case TaskLifecycleBlockUntilStarted, TaskLifecycleBlockUntilCompleted: + case TaskLifecycleBlockUntilRunning, TaskLifecycleBlockUntilCompleted: default: return fmt.Errorf("invalid block_until: %v", d.BlockUntil) }