We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e40e39 commit e786c8dCopy full SHA for e786c8d
1 file changed
kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/BatchesResource.scala
@@ -362,7 +362,18 @@ private[v1] class BatchesResource extends ApiRequestContext with Logging {
362
isOperationTerminated ||
363
isApplicationTerminated ||
364
metadata.kyuubiInstance == fe.connectionUrl) {
365
- MetadataManager.buildBatch(metadata)
+ if (isApplicationTerminated) {
366
+ buildBatch(
367
+ metadata,
368
+ Some(ApplicationInfo(
369
+ metadata.engineId,
370
+ metadata.engineName,
371
+ metadata.appState.orNull,
372
+ Option(metadata.engineUrl),
373
+ metadata.engineError)))
374
+ } else {
375
+ MetadataManager.buildBatch(metadata)
376
+ }
377
} else {
378
val internalRestClient = getInternalRestClient(metadata.kyuubiInstance)
379
try {
0 commit comments