mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Add Valid command to spawner and make executors check when opening
This commit is contained in:
@@ -95,8 +95,7 @@ func (e *LinuxExecutor) Open(id string) error {
|
||||
e.groups = execID.Groups
|
||||
e.spawn = execID.Spawn
|
||||
e.taskDir = execID.TaskDir
|
||||
|
||||
return nil
|
||||
return e.spawn.Valid()
|
||||
}
|
||||
|
||||
func (e *LinuxExecutor) ID() (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user