Abhitocode opened a new pull request, #2346: URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2346
`QuarkusJobsService.synchronize()` and `SpringbootJobsService.synchronize()` register a transaction synchronization unconditionally. If the transaction is no longer active, this throws: ` java.lang.IllegalStateException: Syncs are not allowed to be registered when the transaction is in state 1` Added guard for both. Skip's registration when the transaction is not active. The action only runs on commit, so a rolled-back transaction would never execute it, skipping is safe. Closes: https://github.com/apache/incubator-kie-issues/issues/2350 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
