tkotosz / command-scheduler-magento2
Command Scheduler for Magento 2
Installs: 43 996
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 2
Open Issues: 0
Type:magento2-module
Requires
- php: >=7.1
- magento/framework: ^101.0|^102.0|^103.0.0
README
This module allows you to schedule bin/magento commands in the Magento admin. This makes it possible to run bin/magento command with only Magento admin access.
Usage:
- Configure the allowed commands: List of allowed commands can be configured in the di like this:
<type name="Tkotosz\CommandScheduler\Model\AllowedCommandsContainer">
<arguments>
<argument name="allowedCommands" xsi:type="array">
<item name="Cache Clean" xsi:type="string">cache:clean</item>
</argument>
</arguments>
</type>
-
Schedule any allowed command on the System > Tools > Schedule Commands admin page
-
Wait for the schedule processor to run: By default a cron runs every 5 minute to process the next pending schedule. (alternatively you can use the bin/magento command-scheduler:process-next-schedule command to trigger the schedule processing)
-
Check the result of the command execution on the System > Tools > Schedule Commands admin page by clicking on the "view result" link