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

[7.67.x] [kie-roadmap-119] Scheduled jobs do not keep configured execution time #2309

Merged
merged 1 commit into from Aug 2, 2023

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Aug 1, 2023

Backport: #2292

Note: CI is not automatically triggered on backported PRs, please comment 'ok to test' to launch Jenkins jobs

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.

#2292)

* [kie-roadmap-119] Scheduled jobs do not keep configured execution time

* [kie-roadmap-119] Make sure job gets rescheduled even if execution time exceeds nextRun value
@fjtirado fjtirado merged commit ff84d1a into 7.67.x Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants