Analytics Scheduled Tasks

Background jobs for statistics generation, data aggregation, and reporting

The Analytics scheduled tasks are responsible for generating statistics, aggregating data for reporting, and maintaining analytics indices used by dashboards and business intelligence features.

Available Tasks

TaskDescriptionType
Analytics InteractionIndex customer interaction analytics from ordersDelta
Analytics InventoryIndex inventory analytics dataDelta
Analytics Order LineIndex order line analytics for completed ordersDelta
Analytics Reorder SuggestionsGenerate product reorder suggestionsFull
Analytics Reorder Suggestions DeltaUpdate reorder suggestions based on inventory changesDelta
Add Stats OrdersQueue changed orders for statistics processingDelta
Add Stats CustomersQueue changed customers for statistics processingDelta
Reindex All Stats CustomersRebuild entire customer statistics indexFull

Overview

Analytics tasks work together to maintain the statistics and reporting infrastructure in Omnium:

  1. Interaction Analytics - Tracks customer interactions and order patterns
  2. Inventory Analytics - Monitors inventory levels and movements over time
  3. Order Line Analytics - Provides detailed order line data for sales analysis
  4. Reorder Suggestions - Analyzes sales patterns to recommend inventory replenishment
  5. Stats Queues - FIFO queues for asynchronous statistics processing

Common Use Cases

Sales Reporting

Enable order line analytics to provide data for sales reports, revenue tracking, and performance dashboards.

Inventory Planning

Use reorder suggestions tasks to automatically generate purchase recommendations based on historical sales data.

Customer Analytics

Enable stats customer processing to maintain customer lifetime value calculations and purchase pattern analysis.


Task TypeRecommended ScheduleReason
Delta tasks*/15 * * * * (every 15 minutes)Keep analytics near real-time
Full reindex tasks0 3 * * 0 (weekly at 3 AM Sunday)Heavy operation, run off-peak
Stats queue tasks*/5 * * * * (every 5 minutes)Process queue items promptly

On this page