Skip to content

Scheduler Plugin

Daniel Neto edited this page Jul 19, 2023 · 1 revision

The Scheduler Plugin is a crucial component required by AVideo and several other plugins within the system. Its primary function is to execute predefined tasks at specified intervals, such as every minute, hour, day, or month. These tasks can include releasing scheduled videos, sending emails, clearing cache, and cleaning database tables, among other automated actions.

To utilize the Scheduler Plugin effectively, you must add it to your crontab. Follow the steps below to configure it properly:

  1. Open a terminal or shell session on your server.

  2. Run the command crontab -e. This command opens the crontab file for editing.

  3. In the crontab file, add an entry to execute the Scheduler Plugin script every minute. Use the following syntax:

    * * * * * php /var/www/html/AVideo/plugin/Scheduler/run.php
    

    This entry specifies that the run.php script located in the Scheduler Plugin's directory should be executed every minute.

  4. Save the crontab file and exit the editor.

With the above configuration, the Scheduler Plugin will run the specified tasks at their respective intervals automatically. These tasks will help ensure the smooth functioning of scheduled video releases, email notifications, cache management, and database maintenance.

It's important to note that the exact path provided in the example (/var/www/html/AVideo/plugin/Scheduler/run.php) may vary depending on your server setup and the installation location of the AVideo system. Adjust the path accordingly based on your specific environment.

Clone this wiki locally