Order Scheduled Tasks

Background jobs for order lifecycle management, allocation, automation, and cleanup

The Order scheduled tasks manage the entire order lifecycle, from inventory allocation and payment settlement through to status automation and cleanup of old orders.

Available Tasks

TaskDescriptionType
Allocate Order to Purchase OrderAllocate unreserved order lines to incoming purchase ordersDelta
Cancel Expired Click and CollectCancel click and collect orders that exceed time limitsDelta
Cancel Expired OrdersCancel orders that have exceeded their expiration thresholdDelta
Delete Old OrdersPermanently remove orders older than the configured retention periodDelta
Order AutomationAutomatically transition order status based on configurable conditionsDelta
Payment SettlementsRetrieve and record payment settlement data from payment providersDelta
Try Reallocate OrdersProcess orders past their reallocation deadlineDelta
Try Reserve Order LinesReserve inventory for unreserved order lines using FIFO logicDelta
Update Order StatusProcess scheduled status transitions for ordersDelta
Update Overdue OrdersMark orders as delayed when they pass their expected delivery dateDelta
Update Reservable OrdersUpdate the reservable status flag on ordersDelta

Overview

Order tasks work together to manage the complete order lifecycle in Omnium:

  1. Inventory Allocation - Reserve stock for orders and allocate to purchase orders
  2. Payment Processing - Track payment settlements from external providers
  3. Status Automation - Automatically progress orders through workflow states
  4. Lifecycle Management - Handle expirations, cancellations, and cleanup
  5. Reallocation - Move inventory between orders when necessary

Common Use Cases

Inventory Reservation

Use Try Reserve Order Lines to ensure older orders are prioritized for available inventory using FIFO logic.

Purchase Order Allocation

Enable Allocate Order to Purchase Order to automatically assign unreserved order lines to incoming stock from suppliers.

Status Automation

Configure Order Automation to automatically progress orders based on conditions like payment status and inventory reservation.

Click and Collect Management

Use Cancel Expired Click and Collect to automatically handle orders not picked up within the allowed time window.

Data Retention

Configure Delete Old Orders with an appropriate retention period to comply with data retention policies.


Task TypeRecommended ScheduleReason
Inventory tasks*/15 * * * * (every 15 minutes)Keep allocations current
Payment tasks*/30 * * * * (every 30 minutes)Sync settlement data
Automation tasks*/10 * * * * (every 10 minutes)Responsive status updates
Cleanup tasks0 3 * * 0 (weekly at 3 AM Sunday)Heavy operation, run off-peak
Expiration tasks*/30 * * * * (every 30 minutes)Timely cancellation handling

On this page