From 72d7f6f02e06aa638aabf8113db1b743c2667678 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:51:40 +0100 Subject: [PATCH] Cancel should not interrupt current thread (#3325) --- .../org/kie/kogito/services/jobs/impl/InMemoryJobService.java | 2 +- .../src/test/resources/exec/callback-state-timeouts.sw.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/kogito-services/src/main/java/org/kie/kogito/services/jobs/impl/InMemoryJobService.java b/api/kogito-services/src/main/java/org/kie/kogito/services/jobs/impl/InMemoryJobService.java index 0be813bf499..f686f9a7374 100644 --- a/api/kogito-services/src/main/java/org/kie/kogito/services/jobs/impl/InMemoryJobService.java +++ b/api/kogito-services/src/main/java/org/kie/kogito/services/jobs/impl/InMemoryJobService.java @@ -174,7 +174,7 @@ public void run() { run(); } finally { if (removeAtExecution) { - cancelJob(id, true); + cancelJob(id, false); } } } diff --git a/kogito-serverless-workflow/kogito-serverless-workflow-openapi-parser/src/test/resources/exec/callback-state-timeouts.sw.json b/kogito-serverless-workflow/kogito-serverless-workflow-openapi-parser/src/test/resources/exec/callback-state-timeouts.sw.json index 7fa2e1cf1d0..d38a68d1b1f 100644 --- a/kogito-serverless-workflow/kogito-serverless-workflow-openapi-parser/src/test/resources/exec/callback-state-timeouts.sw.json +++ b/kogito-serverless-workflow/kogito-serverless-workflow-openapi-parser/src/test/resources/exec/callback-state-timeouts.sw.json @@ -15,7 +15,7 @@ "errors": [ { "name": "callbackError", - "code": "java.lang.Exception" + "code": "java.io.IOException" } ], "functions": [