From e997bae209a0af2b08554bd9cacaaa64fed29442 Mon Sep 17 00:00:00 2001 From: Tomas Ludvik Date: Mon, 30 Mar 2020 12:08:22 +0200 Subject: [PATCH] cron definitions moved to project-base (#1739) --- config/services/cron.yml | 56 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/config/services/cron.yml b/config/services/cron.yml index 900b652700..b756958071 100644 --- a/config/services/cron.yml +++ b/config/services/cron.yml @@ -4,7 +4,55 @@ services: autoconfigure: true public: false -# Example: -# Shopsys\FrameworkBundle\Model\Product\Elasticsearch\ProductExportCronModule: -# tags: -# - { name: shopsys.cron, hours: '*', minutes: '*', readableName: 'Product search export' } + Shopsys\FrameworkBundle\Model\Pricing\Vat\VatDeletionCronModule: + tags: + - { name: shopsys.cron, hours: '*', minutes: '*', readableName: 'Delete vats' } + + Shopsys\FrameworkBundle\Model\Product\Pricing\ProductPriceCronModule: + tags: + - { name: shopsys.cron, hours: '*', minutes: '*', readableName: 'Recalculate product prices' } + + Shopsys\FrameworkBundle\Model\Product\ProductVisibilityImmediateCronModule: + tags: + - { name: shopsys.cron, hours: '*', minutes: '*', readableName: 'Recalculate immediate product visibilities' } + + Shopsys\FrameworkBundle\Model\Product\ProductVisibilityMidnightCronModule: + tags: + - { name: shopsys.cron, hours: '0', minutes: '0', readableName: 'Recalculate midnight product visibilities' } + + Shopsys\FrameworkBundle\Model\Product\Availability\ProductAvailabilityCronModule: + tags: + - { name: shopsys.cron, hours: '*', minutes: '*', readableName: 'Recalculate product availabilities' } + + Shopsys\FrameworkBundle\Model\Product\Elasticsearch\ProductExportCronModule: + tags: + - { name: shopsys.cron, hours: '0', minutes: '0', readableName: "Export products to Elasticsearch" } + + Shopsys\FrameworkBundle\Model\Product\Elasticsearch\ProductExportChangedCronModule: + tags: + - { name: shopsys.cron, hours: '*', minutes: '*', readableName: "Export changed products to Elasticsearch" } + + Shopsys\ProductFeed\HeurekaBundle\Model\HeurekaCategory\HeurekaCategoryCronModule: + tags: + - { name: shopsys.cron, hours: '3', minutes: '0', readableName: 'Download Heureka categories' } + + Shopsys\FrameworkBundle\Model\Cart\Item\DeleteOldCartsCronModule: + tags: + - { name: shopsys.cron, hours: '0', minutes: '0', readableName: 'Delete old customer carts' } + + Shopsys\FrameworkBundle\Model\Feed\DailyFeedCronModule: + tags: + - { name: shopsys.cron, hours: '*/6', minutes: '0', readableName: 'Generate daily feeds' } + + Shopsys\FrameworkBundle\Model\Feed\HourlyFeedCronModule: + tags: + - { name: shopsys.cron, hours: '*', minutes: '10', readableName: 'Generate hourly feeds' } + + Shopsys\FrameworkBundle\Model\Sitemap\SitemapCronModule: + tags: + - { name: shopsys.cron, hours: '4', minutes: '0', readableName: 'Generate Sitemap' } + + # This module should run as last because it creates multiple kernels and fake requests. + Shopsys\FrameworkBundle\Component\Error\ErrorPageCronModule: + tags: + - { name: shopsys.cron, hours: '21', minutes: '10', readableName: 'Generate Error pages' }