This is an automated email from the ASF dual-hosted git repository.

mweiler pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new 39778d957 Fix for failing async node pointing to wrong nodeinstance id 
(#2283)
39778d957 is described below

commit 39778d95752664b8d406e20b5444111acb5ab9ca
Author: Deepak Joseph <[email protected]>
AuthorDate: Fri Nov 28 04:44:27 2025 +0530

    Fix for failing async node pointing to wrong nodeinstance id (#2283)
---
 .../app/jobs/integrations/ErrorHandlingJobTimeoutInterceptor.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/jobs/jobs-common-embedded/src/main/java/org/kie/kogito/app/jobs/integrations/ErrorHandlingJobTimeoutInterceptor.java
 
b/jobs/jobs-common-embedded/src/main/java/org/kie/kogito/app/jobs/integrations/ErrorHandlingJobTimeoutInterceptor.java
index c879088e8..4f15cff92 100644
--- 
a/jobs/jobs-common-embedded/src/main/java/org/kie/kogito/app/jobs/integrations/ErrorHandlingJobTimeoutInterceptor.java
+++ 
b/jobs/jobs-common-embedded/src/main/java/org/kie/kogito/app/jobs/integrations/ErrorHandlingJobTimeoutInterceptor.java
@@ -50,7 +50,8 @@ public class ErrorHandlingJobTimeoutInterceptor implements 
JobTimeoutInterceptor
             @Override
             public JobTimeoutExecution call() throws Exception {
                 JobTimeoutExecution execution = callable.call();
-                if (execution.getJobDetails() != null && 
JobStatus.ERROR.equals(execution.getJobDetails().getStatus())) {
+                if (execution.getJobDetails() != null
+                        && 
(JobStatus.ERROR.equals(execution.getJobDetails().getStatus()) || 
(JobStatus.RETRY.equals(execution.getJobDetails().getStatus()) && 
execution.getException() != null))) {
                     if (exceptionHandlers.isEmpty()) {
                         LOG.warn("there was an error in job {} but not handler 
were registered", execution.getJobDetails());
                     } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to