Scheduled Tasks

Configure and manage background jobs in Omnium

Scheduled tasks are background jobs that run automatically at specified intervals to maintain data consistency, synchronize with external systems, send notifications, and perform various housekeeping operations in Omnium.

Cron Schedule Format

Scheduling is controlled by a cron schedule:

 ┌───────────── minute (0 - 59)
 │ ┌───────────── hour (0 - 23)
 │ │ ┌───────────── day of the month (1 - 31)
 │ │ │ ┌───────────── month (1 - 12)
 │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
 │ │ │ │ │
 │ │ │ │ │
 │ │ │ │ │
 * * * * *

Common Schedule Examples

ScheduleDescription
*/5 * * * *Every 5 minutes
0 * * * *Every hour (at minute 0)
0 */6 * * *Every 6 hours
0 0 * * *Daily at midnight
0 3 * * *Daily at 3:00 AM
0 0 * * 0Weekly on Sunday at midnight
0 0 1 * *Monthly on the 1st at midnight

Task Groups

Omnium scheduled tasks are organized into functional groups:

GroupDescriptionTasks
AnalyticsStatistics generation, data aggregation, and reporting8
Customer ClubLoyalty program management, points, birthdays, and member notifications9
OrdersOrder lifecycle management, allocation, automation, and cleanup11
ProductsProduct data maintenance, pricing, assortment, and inventory status11
InventoryStock levels, allocation tracking, valuation, and reorder suggestions7
CartsShopping cart maintenance and conversion2
VouchersVoucher lifecycle and reactivation2
PricesPrice data cleanup and maintenance2
ProjectsProject lifecycle and anonymization2
RatingsProduct rating verification1
StoresStore data maintenance1
SubscriptionsSubscription order generation1
NotificationsNotification processing and delivery1
EventsEvent log maintenance1

Task Types

Delta Tasks

Delta tasks process only data that has changed since the last run. They are efficient and can run frequently (every few minutes). Examples include order import tasks and inventory sync tasks.

Full Tasks

Full tasks process all relevant data regardless of changes. They are typically scheduled less frequently (daily or weekly) and are used for data consistency checks, cleanup operations, or complete recalculations.


Configuration

Scheduled tasks are configured by adding entries to ScheduledTaskSettings. Navigate to Configuration > Advanced > Connectors > Scheduled Task in the Omnium UI.

Image

Configuration Properties

PropertyTypeDescription
SchedulestringCron expression defining when the task runs
ImplementationTypestringThe scheduled task class name
IsDisabledboolSet to true to temporarily disable the task
PropertiesarrayTask-specific configuration properties

Example Configuration

{
    "ImplementationType": "DeleteAbandonedCartScheduledTask",
    "Schedule": "0 3 * * *",
    "IsDisabled": false
}

Configuration with Properties

Some tasks accept additional configuration properties:

{
    "ImplementationType": "DeleteOldOrdersScheduledTask",
    "Schedule": "0 2 * * 0",
    "Properties": [
        {
            "Key": "DeleteOrdersThreshold",
            "Value": "3"
        }
    ]
}

Plugin Scheduled Tasks

Scheduled tasks for external integrations (ERP, POS, E-commerce, WMS, etc.) are documented within each plugin's documentation:

Point of Sale (POS)

  • Sitoo - Order import, product/inventory export
  • FrontSystems - Product import, inventory sync
  • Flow - Product, price, and inventory export
  • VisionPOS - Product and inventory import

ERP Systems

E-commerce Platforms

  • Shopify - Products, orders, inventory
  • Magento - Products, orders, customers, inventory
  • Jetshop - Products, orders, inventory

Warehouse Management

Product Feeds


Best Practices

Scheduling Guidelines

  1. Delta tasks: Schedule frequently (every 1-15 minutes) for near real-time sync
  2. Full tasks: Schedule during off-peak hours (typically 2-5 AM)
  3. Heavy tasks: Avoid running multiple resource-intensive tasks simultaneously
  4. Cleanup tasks: Run weekly or monthly depending on data volume

Monitoring

  • Check the scheduled task execution logs regularly
  • Set up alerts for failed task executions
  • Monitor task duration trends for performance issues

Troubleshooting

  • If a task fails, check the event log for detailed error messages
  • Verify that required settings and configurations are in place
  • For integration tasks, ensure external system credentials are valid