Skip to content

Commit

Permalink
Auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
imsamthomas committed Jul 21, 2016
1 parent b079f17 commit 858c972
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions docs/search-m2/how-to-change-cron-job-time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ Simple change in XML file.

Go to file: `app/code/Mageplaza/Searchplus/etc/crontab.xml` line 6

In this example, change to 2 AM server time.
In this example, change to 2 AM server time:

```
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
<group id="default"> <!-- Doesn't need to be unique -->
<job name="cron_searchplus" instance="Mageplaza\Searchplus\Cron\Job" method="execute">
<schedule>0 2 * * *</schedule>
</job>
</group>
</config>
```
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
<group id="default"> <!-- Doesn't need to be unique -->
<job name="cron_searchplus" instance="Mageplaza\Searchplus\Cron\Job" method="execute">
<schedule>0 2 * * *</schedule>
</job>
</group>
</config>

0 comments on commit 858c972

Please sign in to comment.