From 707e909b7da863637899643f600112de5f527bad Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti Date: Tue, 12 Dec 2023 17:22:03 +0100 Subject: [PATCH] Cancel should not interrupt current thread --- .../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": [