mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 12:25:42 +03:00
Add Valid command to spawner and make executors check when opening
This commit is contained in:
@@ -89,7 +89,7 @@ func (e *BasicExecutor) Open(id string) error {
|
||||
|
||||
// Setup the executor.
|
||||
e.spawn = &spawn
|
||||
return nil
|
||||
return e.spawn.Valid()
|
||||
}
|
||||
|
||||
func (e *BasicExecutor) Wait() error {
|
||||
|
||||
Reference in New Issue
Block a user