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) }