-
Notifications
You must be signed in to change notification settings - Fork 94
Support defining IntervalSchedule in seconds #796
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
Conversation
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
❌ Your project status has failed because the head coverage (33.54%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #796 +/- ##
=========================================
Coverage 33.54% 33.54%
Complexity 143 143
=========================================
Files 29 29
Lines 1389 1389
Branches 132 132
=========================================
Hits 466 466
Misses 886 886
Partials 37 37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
* WIP on allowing interval schedule to operate in seconds Signed-off-by: Craig Perkins <[email protected]> * Support defining IntervalSchedule in seconds Signed-off-by: Craig Perkins <[email protected]> * Use seconds in bwc test Signed-off-by: Craig Perkins <[email protected]> * Update runThenListJobs test Signed-off-by: Craig Perkins <[email protected]> * Consistent create watcher job Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]> Signed-off-by: Jeremy Dupras <[email protected]>
Description
This PR contains an enhancement that allows user's to define an interval schedule in seconds. In order to adequately have jobs running in seconds, a cluster admin must set
plugins.jobscheduler.sweeper.period
also to a value in seconds as this is the frequency at which the jobs are swept.One of the primary benefits of this PR is it drastically reduces the time for integ tests in the sample plugin bc we can now wait seconds instead of minutes to verify behavior.
This PR also refactors the integ tests in the sample plugin for readability.
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.