IBM / bamoe-issues

this is a repository to track IBM work (Issues and Project) with the KIE community!
Apache License 2.0
5 stars 0 forks source link

Improve LogCleanupCommand to keep configured execution time when using NextRun parameter #119

Closed martinweiler closed 10 months ago

martinweiler commented 1 year ago

When scheduling a LogCleanupCommand with NextRun=1d, the actual execution time for the next run is calculated as (current command execution time + nextRun value). Over time, this can lead to the scheduled execution time to slip, ie. a job scheduled initially at 00:00 gets executed at 00:10, and the execution could be outside of a designated maintenance window.

The expectation is that subsequent executions happen at the defined start time + nextRun value, ie. a job scheduled initially at 00:00 with NextRun=1d should always run at 00:00, regardless of how long it takes to execute it.

martinweiler commented 1 year ago

@elguardian could you please review this PR: https://github.com/kiegroup/jbpm/pull/2292 Thanks!

martinweiler commented 11 months ago

Scheduled for inclusion in 7.13.4 / 8.0.4: https://issues.redhat.com/browse/RHPAM-4750

martinweiler commented 10 months ago

Closing, fixes merged:

YajieY commented 9 months ago

RHPAM-4750 has been in the bamoe-8.0.4 fixed issues list & ready to release.