wmedvede commented on PR #2214:
URL:
https://github.com/apache/incubator-kie-kogito-apps/pull/2214#issuecomment-2889113509
**Execution of overdue triggers at Job Service Start-up has issues:**
Below I show an example of how we program four triggers, and what happens
with the overdue triggers at jobs service startup.
**Before:**
**Step1:**
We program the following Jobs, with the given fire_times:
JOB1, fireTime: 19:05
JOB2, fireTime: 19:05
JOB3, fireTime: 19:10
JOB4, fireTime: 19:20
**Step2:**
Stop the jobs service **before** **19:05**
**Step3;**
Start the jobs service **at** **19:07**
JOB1, 19:05, is overdue -> is executed as expected, OK.
JOB2, 19:05, is overdue -> is executed as expected, OK.
JOB3, 19:10, not overdue -> is NOT executed as expected.
JOB4, 19:20, not overdue -> is NOT executed as expected.
**Now:**
**Step1:**
We program basically the same scenario (using same fireTimes to clarify
better)
JOB1, fireTime: 19:05
JOB2, fireTime: 19:05
JOB3, fireTime: 19:10
JOB4, fireTime: 19:20
**Step2:**
Stop the jobs service **before** **19:05**
**Step3;**
Start the jobs service **at** **19:07**
JOB1, 19:05, is overdue -> is executed as expected, OK.
JOB2, 19:05, is overdue -> is executed as expected, OK.
**JOB3, 19:10, not overdue -> is executed, but shouldn't, since it's not
overdue. This is the issue.**
JOB4, 19:20, not overdue -> is NOT executed as expected.
--
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]