ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.02k stars 3.42k forks source link

Exclude Dates and Times in Scheduler / Outage windows when jobs will not run #1229

Open mneumarkidg opened 6 years ago

mneumarkidg commented 6 years ago
ISSUE TYPE
COMPONENT NAME
SUMMARY

Would be nice to have the ability to exclude dates, times, hours, or ... from scheduler. (Example Usage: static maintenance windows, exclude known times/dates)

ENVIRONMENT
EXPECTED RESULTS

Ability to exclude certain dates, times, hours, ....

mneumarkidg commented 6 years ago

A custom cron statement would work too, if we had the capability to build our own!

wenottingham commented 6 years ago

All schedules are done as recurrence rules - https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html.... it would need to work in that framework.

mneumarkidg commented 6 years ago

Can we use https://icalendar.org/iCalendar-RFC-5545/3-8-5-1-exception-date-times.html then?

wenottingham commented 6 years ago

Conceptually, yes. There's no current support for it in the API/UI/scheduler, though.

mneumarkidg commented 6 years ago

Is this something that could be a feature request? This feature can reduce the amount of schedule tasks. As if someone needed to schedule something to run every hour except for certain hour(s). That wouldn't currently be possible without up to 23 individual scheduled tasks.

wenottingham commented 6 years ago

Sure, that's why I marked it as an enhancement.

garamirseokim commented 4 years ago

Request to add advanced schedule options in Tower

SUMMARY Some users are requesting one of below options in Tower.

  1. cron-style timing configuration: Allow for cron-style detailed timing configuration
  2. blackout option on Tower UI: Keep the current UI but have a global "blackout" window in which Ansible won't start new schedules.

ISSUE TYPE Feature Idea

COMPONENT NAME UI / API

ADDITIONAL INFORMATION The user has an automated maintenance window each morning where some systems will patch and automatically restart, if required. The user wants to avoid Tower reporting connection problems or having failures mid-run by avoiding any scheduled jobs during this time. All job results are investigated by an Administrator, so being able to prevent new schedules starting during the maintenance window would reduce false-positive failures.

wenottingham commented 4 years ago

cron-type schedules are not planned.

sugitk commented 2 years ago

Another customer has reported regarding this RFE.

blackout option on Tower UI: Keep the current UI but have a global "blackout" window in which Ansible won't start new schedules.

During the upgrade or maintenance, the customer requested that the scheduled jobs must not trigger any jobs. It is better to specify a time window like cron, however a manual operation can be accepted at least.