use of com.microsoft.frameworklauncher.common.service.StopStatus in project pai by Microsoft.
the class ApplicationMaster method stopForInternalTransientError.
private void stopForInternalTransientError(String customizedDiagnostics) {
String diagnostics = ExitDiagnostics.generateDiagnostics(ExitStatusKey.AM_INTERNAL_TRANSIENT_ERROR, customizedDiagnostics);
// Do not unregister, so that RM will start new attempt if AMAttemptMaxCount and
// AMAttemptFailuresValidityIntervalSec is allowed.
stop(new StopStatus(ExitStatusKey.AM_INTERNAL_TRANSIENT_ERROR.toInt(), false, diagnostics));
}
Aggregations