Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
martinweiler opened this issue May 18, 2023 · 4 comments
Assignees
Labels
area:bpmn Related to BPMN type:enhancement Something that already exists needs to be improved

Comments

@martinweiler
Copy link

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 martinweiler added type:enhancement Something that already exists needs to be improved area:bpmn Related to BPMN labels May 18, 2023
@martinweiler
Copy link
Author

@elguardian could you please review this PR: kiegroup/jbpm#2292
Thanks!

@martinweiler
Copy link
Author

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

@martinweiler martinweiler self-assigned this Aug 8, 2023
@YajieY
Copy link

YajieY commented Sep 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:bpmn Related to BPMN type:enhancement Something that already exists needs to be improved
Projects
Development

No branches or pull requests

2 participants