RFE: Allow more fine grained schedules/allow direct rrule entry
#9,916 opened on Apr 15, 2021
Repository metrics
- Stars
- (13,071 stars)
- PR merge metrics
- (Avg merge 24d 6h) (30 merged PRs in 30d)
Description
ISSUE TYPE
- Feature Idea
SUMMARY
The scheduling of jobs/workflows is somewhat non-intuitive, if you want to run scheduled jobs outside of set times at given days or every x minute all day.
A current scenario I have right now is I want to run a job: Monday - Friday Starting: 10:01 Ending: 18:02 Every: 15 minutes
This alone requires the creation of 33 separate schedules. This is potentially amplified because the Job Template copy behavior does not permit for copying of the schedule. It would be helpful to have the option to also copy schedules (and notifications) related to the Job Template.
While it is possible to generate such rules by using rrule via the API, it might be too complicated for less tech savvy users and defeats the purpose of the WebUI. The only thinkable option is to make a Survey Job, utilizing awx.awx.tower_schedule and generate the rrule.
If improvements to the Job Schedule UI, allowing for more fine-grained schedules is not on the current roadmap, could an option be an option to accept rrule as input during schedule creation until it is?
Exceptions for holidays (or otherwise) would also be a positive addition, as certain organizations might not want to run jobs that could impact business critical systems when staff is on extended leave or some jobs (like financial processing) should not be run. This could optimally be possible on to set on a global level, with the possibility of overriding for single jobs.
Additional suggestions (2021-04-27):
- Standardize on ISO 8601-2:2019 format
- Schedule creation is made in 24 hour format (ISO 8601)
- Week start (for weekly jobs) hard-coded to Sunday (not ISO 8601)
- Schedule list is in (M)M/DD/YYYY & 12 hour format (not ISO 8601)
- The same applies to Start/End Date (also has (M)M/DD/YYYY format)
- Schedule creation is made in 24 hour format (ISO 8601)
- Repeat Frequency field does not take input like Local Time Zone, meaning you cannot use the keyboard
- The same applies to "End" field (if applicable)