Skip to content

Commit b63fd5e

Browse files
committed
fixed schedule currency_rates_update cron job not working
1 parent 3fe8a17 commit b63fd5e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/Directory/Model/Observer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,11 @@ public function __construct(
8383
}
8484

8585
/**
86-
* @param mixed $schedule
8786
* @return void
8887
* @throws \Exception
8988
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
9089
*/
91-
public function scheduledUpdateCurrencyRates($schedule)
90+
public function scheduledUpdateCurrencyRates()
9291
{
9392
$importWarnings = [];
9493
if (!$this->_scopeConfig->getValue(

app/code/Magento/Directory/etc/crontab.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
99
<group id="default">
10-
<job name="currency_rates_update" instance="Magento\Directory\Model\Observer" method="scheduledUpdateCurrencyRates" />
10+
<job name="currency_rates_update" instance="Magento\Directory\Model\Observer" method="scheduledUpdateCurrencyRates">
11+
<config_path>crontab/default/jobs/currency_rates_update/schedule/cron_expr</config_path>
12+
</job>
1113
</group>
1214
</config>

0 commit comments

Comments
 (0)