tkotosz/command-scheduler-magento2

Magento 2 的命令调度器

安装次数: 43,206

依赖项: 0

建议者: 0

安全: 0

星标: 6

关注者: 1

分支: 2

开放问题: 0

类型:magento2-module

1.0.6 2020-09-14 15:05 UTC

This package is auto-updated.

Last update: 2024-09-15 00:04:12 UTC


README

License Latest Stable Version Scrutinizer Code Quality Build Status

此模块允许您在 Magento 管理后台中安排 bin/magento 命令。这使得仅通过 Magento 管理后台访问即可运行 bin/magento 命令。

用法

  1. 配置允许的命令:允许的命令列表可以在 di 中配置,如下所示
<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. 在系统 > 工具 > 调度命令管理页面安排任何允许的命令

  2. 等待调度处理器运行:默认情况下,cron 每隔 5 分钟运行一次以处理下一个待处理的调度。(您也可以使用 bin/magento command-scheduler:process-next-schedule 命令来触发调度处理)

  3. 通过单击“查看结果”链接在系统 > 工具 > 调度命令管理页面检查命令执行的结果