You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "jstastny-cz (via GitHub)" <gi...@apache.org> on 2026/01/29 08:31:48 UTC

[I] Embedded Jobs Addon job execution error details handling [incubator-kie-issues]

jstastny-cz opened a new issue, #2231:
URL: https://github.com/apache/incubator-kie-issues/issues/2231

   Embedded Jobs Addon in compact-architecture setup executes the Jobs locally within given execution context (Process, Process Instance, Task Instance).
   
   During the execution, with possible multiple retry attempts, the error details are currently only logged. They are not available through the model or endpoints.
   
   While such information is considered sensitive from security perspective, we could allow users to conditionally collect and expose the error details if they choose to (e.g. in a dev environment).
   
   Moreover we could provide an extension point allowing users to implement their own logic to sanitize the error details coming from the execution engine and make sure the sensitive parts are treated accordingly.
   
   This issue is intended to:
   1. Reduce the scope of changes to kogito-apps components only.
   2. Adjust Jobs-relevantinternal models to add extra fields, e.g. `exceptionMessage` and `exceptionDetails` (including DDL, GraphQL)
   3. Introduce an enable/disable toggle for collection and promotion of relevant Job execution error details.
   4. Implement Embedded Jobs Addon changes.
   5. Adjust data-index and data-audit to expose such information.
   
   The following items are left out of scope as possible future follow-ups:
   1. Management Console UI changes.
   2. "Standalone" Jobs Service implementation (would require changes also in kogito runtimes service area).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Embedded Jobs Addon job execution error details handling [incubator-kie-issues]

Posted by "jstastny-cz (via GitHub)" <gi...@apache.org>.
jstastny-cz closed issue #2231: Embedded Jobs Addon job execution error details handling
URL: https://github.com/apache/incubator-kie-issues/issues/2231


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Embedded Jobs Addon job execution error details handling [incubator-kie-issues]

Posted by "jstastny-cz (via GitHub)" <gi...@apache.org>.
jstastny-cz commented on issue #2231:
URL: https://github.com/apache/incubator-kie-issues/issues/2231#issuecomment-3907298359

   Hi @wmedvede thank you for your summary and hints, your assumptions are correct and I agree about your concerns. I've created a new issue to address those as a follow-up:
   * #2249
   
   This will allow me to wrap up my existing PR for Embedded Jobs Addon, which has gone through reviews already and later on focus on the "standalone" jobs service thoroughly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Embedded Jobs Addon job execution error details handling [incubator-kie-issues]

Posted by "wmedvede (via GitHub)" <gi...@apache.org>.
wmedvede commented on issue #2231:
URL: https://github.com/apache/incubator-kie-issues/issues/2231#issuecomment-3877495448

   Hi Jan, thanks for opening this issue.
   
   So, if my understanding is correct, the idea is to give users more information about a potential Job failure, for example via the Data Index API. right?  And, following the example with the fields `exceptionMessage` and `exceptionDetails`, you mentioned above, uses will be able to execute a DI graphql query like this:
   
   **Example of query with extended fields:**
   
   ```
   {
       Jobs {
         id,
         processId,
         processInstanceId,
         status,
         retries,
   
         //extended fields
         exceptionMessage,
         exceptionDetails,
   
       }
   }
   
   ```
   
   **Example of query result with the extended fields for a failing Job:**
   
   ```
   {
     "data": {
       "Jobs": [
         {
           "id": "TIMER_0",
           "processId": "HelloWorld",
           "processInstanceId": "2ab0fabf-fd51-4201-96bf-393e5ab3b098",
           "status": "ERROR",
           "retries": 62,
           
           "exceptionMessage": "Relevant exception message picked up during the job execution"
           "exceptionDetails": "Relevant details",
         }
       ]
     }
   }
   ```
   
   My only concerns are:
   
   1) If the change is only implemented for the `kogito-addons-quarkus-jobs`  add-on, users of the `kogito-addons-quarkus-jobs-service-embedded` and  `jobs-service-postgresql` variants will see this a Bug. No information error informaiton will be populated in these cases.
   
   2) When you comment that the "Standalone" Jobs Service implementation (would require changes also in kogito runtimes service area).  Which changes are requied in the runtimes? 
   The Job is in the end executed in the Job service side, so the potential error should be availabe there I think.
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org