Manage your CraftCMS application schedules in Cp. Run a command, trigger an event, push a queue task, or send HTTP requests at a specified time. You can flexibly customize the trigger time and even design your schedule type.
This plugin requires Craft CMS 3.1 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require panlatent/schedule
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Schedule.
-
Add a record to system crontab:
* * * * * php /path/to/craft schedules/run 1>> /dev/null 2>&1
Or use built-in
schedules/listen
command:$ ./craft schedules/listen
If you use DDEV:
$ ddev craft schedules/listen
For the command line we support some actions and options:
Delete logs
craft schedules/clear-logs [interval]
Delete all logs
craft schedules/clear-logs --all
Run schedules asynchronously:
craft schedules/run --async
craft schedules/listen --async
Listen all active timer events with clear log:
craft schedules/listen --with-clear-log
Read more about it, including install instructions, in the official documentation.
The Schedule is open-sourced software licensed under the MIT license.