mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
client: restart on recoverable StartTask errors
Fixes restarting on recoverable errors from StartTask. Ports TestTaskRunner_Run_RecoverableStartError from 0.8 which discovered the bug.
This commit is contained in:
@@ -656,7 +656,9 @@ func (tr *TaskRunner) runDriver() error {
|
||||
return fmt.Errorf("failed to start task after driver exited unexpectedly: %v", err)
|
||||
}
|
||||
} else {
|
||||
return fmt.Errorf("driver start failed: %v", err)
|
||||
// Do *NOT* wrap the error here without maintaining
|
||||
// whether or not is Recoverable.
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user