it's running now

This commit is contained in:
Mahmood Ali
2019-12-04 15:44:03 -05:00
parent 8fac2b5094
commit 08d1b4e18a

View File

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