tkotosz/command-scheduler-magento2 1.0.6

Command Scheduler for Magento 2

Type

magento2-module

License

MIT

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Command Scheduler module for Magento 2

License Latest Stable Version Scrutinizer Code Quality Build Status

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:

  1. 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>
  1. Schedule any allowed command on the System > Tools > Schedule Commands admin page

  2. 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)

  3. Check the result of the command execution on the System > Tools > Schedule Commands admin page by clicking on the "view result" link