tkotosz/command-scheduler-magento2

Command Scheduler for Magento 2

Installs: 40 030

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 1

Forks: 2

Open Issues: 0

Type:magento2-module

1.0.6 2020-09-14 15:05 UTC

This package is auto-updated.

Last update: 2024-04-14 23:12:56 UTC


README

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