init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* 要启动自定义crontab, 需要跑php bin/magento cache:flush,cache:clean都不行。目前不知道为什么
|
||||
*/
|
||||
-->
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
|
||||
<group id="default">
|
||||
<job name="stemcell_import_stock_job" instance="Stemcell\ProductImport\Cron\ImportStock" method="execute">
|
||||
<schedule>* * * * *</schedule>
|
||||
</job>
|
||||
<job name="stemcell_import_price_job" instance="Stemcell\ProductImport\Cron\ImportPrice" method="execute">
|
||||
<schedule>* * * * *</schedule>
|
||||
</job>
|
||||
</group>
|
||||
</config>
|
||||
Reference in New Issue
Block a user