Resolve "Distribute daily cron schedules out over the hour"
This MR aims to generate a random time on each page load so that a user who might not care precisely at which time the task is run to have different preset. This should alleviate some of the load that we are seeing at a 4am currently as all preset run at this time.
Referring the issue:
- Making the preset outcomes editable after being chosen
- The cron field stays editable
- The presets will randomize upon page load
- Every day: changes times
- Every week: changes day and times
- Every month: changes day and times
- Allowing for ranges to be defined in the cron syntax for hours only (borrowing from Jenkins)
- Hours: H (0-23)
E.g:
- Page load
- Generate Random Week day -> Wednesdays
- Generate Random Date -> 4th
- Generate Random Time -> 19h
- User then has the choice between Custom, Every day at 19h, Every Wednesday at 19h , Every month, 4th at 19h
- User can edit the custom field at any time and it re select
custom
video: I am on the page and then I refresh. Notice the value changes. Then I select different fields and the input value updates. If I edit the custom field, it will automatically go to custom. cron
Edited by Toon Claes