Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 1.39 KB

schedule-cron-job-for-scheduled-prices.md

File metadata and controls

31 lines (28 loc) · 1.39 KB
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
/docs/scos/dev/tutorials/201907.0/howtos/feature-howtos/how-to-schedule-cron-job-for-scheduled-prices.html
/docs/scos/dev/tutorials-and-howtos/howtos/feature-howtos/howto-schedule-cron-job-for-scheduled-prices.html
/docs/pbc/all/price-management/202307.0/base-shop/tutorials-and-howtos/howto-schedule-cron-job-for-scheduled-prices.html
title link
Scheduled Prices feature walkthrough
docs/pbc/all/price-management/page.version/base-shop/scheduled-prices-feature-overview.html

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,
];