Skip to content

Commit 73b77b3

Browse files
committed
use isTerminated
1 parent 64f96a2 commit 73b77b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kyuubi-server/src/main/scala/org/apache/kyuubi/operation/BatchJobSubmission.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class BatchJobSubmission(
162162
}
163163

164164
private def getAppState(operState: OperationState, appState: ApplicationState.ApplicationState): ApplicationState.ApplicationState = {
165-
if (state == OperationState.ERROR && appState != ApplicationState.FAILED) {
165+
if (state == OperationState.ERROR && !ApplicationState.isTerminated(appState)) {
166166
ApplicationState.UNKNOWN
167167
}
168168
appState

0 commit comments

Comments
 (0)