HowTo - Schedule Cron Job for Scheduled Prices
  • Updated on 06 Jan 2020
  • 1 minute to read
  • Print
  • Share
  • Dark
    Light

HowTo - Schedule Cron Job for Scheduled Prices

  • Print
  • Share
  • Dark
    Light

This article describes how to change the default behavior of the cron job shipped with the Scheduled Prices feature.

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,
];
Was this article helpful?