From 0c186f9a3be5a588cfb07371b31883102a759880 Mon Sep 17 00:00:00 2001 From: LiuGuoHua <129264181+sjgllgh@users.noreply.github.com> Date: Thu, 22 Feb 2024 18:08:20 +0800 Subject: [PATCH] fix cancelled task still executed (#5074) --- .../linkis/entrance/persistence/QueryPersistenceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/persistence/QueryPersistenceManager.java b/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/persistence/QueryPersistenceManager.java index 44966fc1f1..f051b058f1 100644 --- a/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/persistence/QueryPersistenceManager.java +++ b/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/persistence/QueryPersistenceManager.java @@ -190,7 +190,7 @@ private void updateJobStatus(Job job) { createPersistenceEngine().updateIfNeeded(jobRequest); } catch (ErrorException e) { entranceContext.getOrCreateLogManager().onLogUpdate(job, e.getMessage()); - logger.error("update job status failed, reason: ", e); + throw e; } }