Skip to content

Commit

Permalink
use addTimeoutMonitor for server-side query timeout checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Oct 18, 2023
1 parent 8f6b15c commit 5913698
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class ExecuteStatement(
var lastStateUpdateTime: Long = 0L
val stateUpdateInterval =
session.sessionManager.getConf.get(KyuubiConf.OPERATION_STATUS_UPDATE_INTERVAL)
while (!isComplete) {
addTimeoutMonitor(queryTimeout)
while (!isComplete && !isTerminalState(state)) {
fetchQueryLog()
verifyTStatus(statusResp.getStatus)
if (statusResp.getProgressUpdateResponse != null) {
Expand Down

0 comments on commit 5913698

Please sign in to comment.