Search in sources :

Example 6 with StopStatus

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));
}
Also used : StopStatus(com.microsoft.frameworklauncher.common.service.StopStatus)

Aggregations

StopStatus (com.microsoft.frameworklauncher.common.service.StopStatus)6 NonTransientException (com.microsoft.frameworklauncher.common.exceptions.NonTransientException)2 ExitStatusKey (com.microsoft.frameworklauncher.common.exit.ExitStatusKey)1 ExitStatusValue (com.microsoft.frameworklauncher.common.exit.ExitStatusValue)1