Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Configuring Batch Server Scheduled Jobs

Configuring Batch Server Scheduled Jobs

The batch server uses scheduled jobs to perform certain operations, such calculating top selling products and product recommendations. The quartz.xml file contains settings that configure how and when these jobs run. It is located in the batch/ep-batch/src/main/resources/spring/scheduling directory.

Some of these jobs can be configured to run at different intervals or to clear different amounts of data. For more information on how to do this, see Configuring System Settings.

Batch Server Quartz Jobs

The Elastic Path Quartz Jobs page contains a list of the Batch server's quartz jobs.

Computing Product Recommendations

A trigger is declared for computing product recommendation data. A SimpleTriggerBean is typically used to compute recommendations every 30 seconds for demonstration purposes. For production, use a CronTriggerBean to compute recommendations with a longer interval (for example, an interval of 24 hours).

Note:

Running the product recommendations job frequently on a large catalog with many orders can have a negative impact on performance. In a busy production environment, it is recommended that you schedule it to run at intervals of one hour (3600000 milliseconds) or more.

Computing the Top Sellers

A trigger is declared for computing the top selling product statistics. A SimpleTriggerBean is typically used to compute recommendations every 30 seconds for demonstration purposes. For production, use a CronTriggerBean to compute recommendations with a longer interval (for example, an interval of 24 hours).

Note:

Running the top sellers job frequently on a large catalog with many orders can have a negative impact on performance. In a busy production environment, it is recommended that you schedule it to run at intervals of one hour (3600000 milliseconds) or more.