title | Description | last_updated | template | originalLink | originalArticleId | redirect_from | related | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Schedule cron job for scheduled prices |
This document describes how to change the default behavior of the cron job shipped with the Scheduled Prices feature. |
Jun 16, 2021 |
howto-guide-template |
612d102b-f61a-4c7b-adec-9a2697ed6349 |
|
|
By default, the cron job runs every day at 00:06:00-00:00. You can change the frequency, date and time of running the cron job by modifying the 'schedule'
key in config/Zed/cronjobs/jobs.php
:
...
/* PriceProductSchedule */
$jobs[] = [
'name' => 'apply-price-product-schedule',
'command' => '$PHP_BIN vendor/bin/console price-product-schedule:apply',
'schedule' => '0 6 * * *',
'enable' => true,
'run_on_non_production' => true,
'stores' => $allStores,
];