You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "wmedvede (via GitHub)" <gi...@apache.org> on 2024/05/19 08:36:45 UTC
[I] The Event state creates two jobs [incubator-kie-kogito-runtimes]
wmedvede opened a new issue, #3524:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3524
### Describe the bug
1) Execute for example event-state-timeouts the serverless-workflow-timeouts-showcase-embedded but setting the log level with:
quarkus.log.category."org.kie.kogito.jobs".level=DEBUG
2) When a new workflow instance is created in the logs we can see:
2024-05-19 10:19:13,818 wmedvede DEBUG [org.kie.kogito.jobs.management.quarkus.VertxJobsService:100] (executor-thread-1) **Job to be scheduled** ProcessInstanceJobDescription{id='**5983c68e-d645-4d4f-a84c-2b0c80ca5f7a**', timerId=-1', expirationTime=org.kie.kogito.jobs.DurationExpirationTime@5b8f5b79, priority=5, processInstanceId='1dc41c90-16e3-4a87-a911-0fcee6adddb5', rootProcessInstanceId='null', processId='event_state_timeouts', rootProcessId='null', nodeInstanceId='d09b6c6f-92c0-4435-b5c0-995788be8a7a'} with callback URL http://localhost:8080/management/jobs/event_state_timeouts/instances/1dc41c90-16e3-4a87-a911-0fcee6adddb5/timers/-1
2024-05-19 10:19:13,846 wmedvede DEBUG [org.kie.kogito.jobs.management.quarkus.VertxJobsService:100] (executor-thread-1) **Job to be scheduled** ProcessInstanceJobDescription{id='**dc4bf46c-3f15-49c3-9cc3-9b1fc9a0904e**', timerId=-1', expirationTime=org.kie.kogito.jobs.DurationExpirationTime@89d00e5, priority=5, processInstanceId='1dc41c90-16e3-4a87-a911-0fcee6adddb5', rootProcessInstanceId='null', processId='event_state_timeouts', rootProcessId='null', nodeInstanceId='f5a79e62-f7d8-495b-a79c-36ab90ca80f2'} with callback URL http://localhost:8080/management/jobs/event_state_timeouts/instances/1dc41c90-16e3-4a87-a911-0fcee6adddb5/timers/-1
3) What we can see is that two jobs where created, this is the bug.
Full execution log here:
https://gist.github.com/wmedvede/932a4e68057fa69b7efa13442ac75eff
When the job is finally fired, will see that the first job is executed, and the process finishes as expected.
When the process finishes, the second job is automatically cancelled, and at some point in the execution, the jobs service prints a controlled error. This is because the second job was canceled as part of the process finalization at the same time it was executing. But this is a controlled error.
### Expected behavior
Only one job should be created.
### Actual behavior
_No response_
### How to Reproduce?
_No response_
### Output of `uname -a` or `ver`
_No response_
### Output of `java -version`
_No response_
### GraalVM version (if different from Java)
_No response_
### Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)
_No response_
### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
_No response_
### Additional information
_No response_
--
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] The Event state creates two jobs [incubator-kie-kogito-runtimes]
Posted by "fjtirado (via GitHub)" <gi...@apache.org>.
fjtirado closed issue #3524: The Event state creates two jobs
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3524
--
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