Example – scheduled maintenance window
A common use case in large websites, especially e-commerce ones, is the need to set up a regular maintenance window in which some batch operations are executed, such as to align with the warehouse for the availability of products, synchronize with shipping companies, and similar operations.
To avoid creating inconsistencies with customer orders, it may be useful to define a maintenance window for the website, suspending it from operations for a certain amount of time. Let’s suppose that you need to take the website offline for 1 hour, every day from midnight to 1:00 A.M. Doing so is very easy with Scheduled Tasks – you just need to set up two tasks:
- One to make the website go offline at a given time
- Another to make the website go back online at a given time
Let’s start with the first task.
In the Scheduled Tasks component, create a new task by selecting the Set Site Offline type. For the Execution...