catalyst / moodle-auth_outage

Planned, graduated user and admin friendly moodle outages
https://moodle.org/plugins/auth_outage
17 stars 34 forks source link

We should not check if the outage is over very often during the expected outage window #282

Open brendanheywood opened 2 years ago

brendanheywood commented 2 years ago

Follow on from:

https://github.com/catalyst/moodle-auth_outage/issues/279

If we have a 20 min outage, during the outage we should not need to check very often if it is finished. Lets say we check randomly every 10 mins. But when the expected outage finish time happens then we should resume checking a little more often. In the ideal case we have a short planned outage, we don't check at all during it, and then we check once at the expected finish and its good and that's it.

brendanheywood commented 2 years ago

https://github.com/catalyst/moodle-auth_outage/blob/015300d0981bbca47a57fe82bd9dc61b4fdc71dc/views/warningbar/warningbar.js#L67