How to schedule tasks in Plesk

How to schedule tasks in Plesk

This article provides instructions on configuring scheduled tasks in Plesk, enabling you to execute commands, fetch URLs, and run PHP scripts at specified intervals using the task scheduler.

Adding a scheduled task

  1. Log in to Plesk.
  1. click Scheduled Tasks: 
  1. Click on add task.
  2. On the Schedule a Task page, in the Task type section, select the type of task that you want to set up:
  • Select Run a command to use commands
  • Select Fetch a URL to retrieve a URL with similar functionality to the curl program. In the URL text box, specify the URL you want to fetch.
  • Select Run a PHP script to run PHP scripts hosted on the server. In the Script path text box, specify the path to the script file, as well as any optional arguments in the with arguments text box.
  1. In the Run section, specify the frequency and time with which you want to run the scheduled task.
  2. In the Description text box, type a note or comment related to the scheduled task, or leave the text box empty.
  3. In the Notify section, select how frequently you want to receive notifications related to the scheduled task.
  4. To immediately run the scheduled task, click Run Now.
  5. To save the scheduled task, click OK.