tkotosz / command-scheduler-magento2
Magento 2 的命令调度器
1.0.6
2020-09-14 15:05 UTC
Requires
- php: >=7.1
- magento/framework: ^101.0|^102.0|^103.0.0
README
此模块允许您在 Magento 管理后台中安排 bin/magento 命令。这使得仅通过 Magento 管理后台访问即可运行 bin/magento 命令。
用法
- 配置允许的命令:允许的命令列表可以在 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>
-
在系统 > 工具 > 调度命令管理页面安排任何允许的命令
-
等待调度处理器运行:默认情况下,cron 每隔 5 分钟运行一次以处理下一个待处理的调度。(您也可以使用 bin/magento command-scheduler:process-next-schedule 命令来触发调度处理)
-
通过单击“查看结果”链接在系统 > 工具 > 调度命令管理页面检查命令执行的结果