In runnerty we can make use of calendar events (ics) to allow or disallow the execution of triggers.
config.json file of the project we will add the path with a directory that contains calendars (
calendarsFolder) or a list of calendars (
calendars) in which we will indicate their name and path or url.
In the case of
calendarsFolder, the name that will be assigned to the calendar will be the basename of the ics.
The names assigned to each of the calendars will be maintenances and backups-windows.
In the configuration of any trigger we can include the
calendars property in which we will indicate in the
allow attribute the calendar based on which the trigger can be executed and / or in
disallow the calendar based on which the trigger cannot run.