Exercises
Now, it’s time to apply the knowledge you’ve acquired in this chapter and use the Scheduled Tasks feature.
Exercise 1 – handling planned maintenance
Create two scheduled tasks to handle planned maintenance weekly. The website should be taken offline every Saturday at 23.00 and should be set back online every Sunday at 1.00 A.M. You can use Interval, Daily or Cron Execution (Advanced) as the Execution Rule property for these tasks.
Exercise 2 – calling an endpoint
Create a scheduled task to call the following URL every Monday at 8.00 A.M. The URL to be called is your website’s index.php
.