Add Valid command to spawner and make executors check when opening

This commit is contained in:
Alex Dadgar
2015-11-06 11:23:27 -08:00
parent bf44d3c2ed
commit 34ccda8cd1
6 changed files with 123 additions and 5 deletions

View File

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