mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
it's running now
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user