Skip to content

Commit

Permalink
use isTerminated
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopamaral committed Oct 8, 2024
1 parent 64f96a2 commit 73b77b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class BatchJobSubmission(
}

private def getAppState(operState: OperationState, appState: ApplicationState.ApplicationState): ApplicationState.ApplicationState = {
if (state == OperationState.ERROR && appState != ApplicationState.FAILED) {
if (state == OperationState.ERROR && !ApplicationState.isTerminated(appState)) {
ApplicationState.UNKNOWN
}
appState
Expand Down

0 comments on commit 73b77b3

Please sign in to comment.