Skip to main content

Scheduling

Automations can be scheduled to run at a specific future time, in addition to event-based triggers.

How Scheduling Works

PredictCart uses Action Scheduler (when available) or falls back to WP-Cron for scheduled runs.

Preferred: Action Scheduler

Action Scheduler is included with WooCommerce and provides reliable, asynchronous job execution. It processes scheduled actions on every page load via WP-Cron or a system cron job.

Advantages:

  • More reliable than WP-Cron
  • Handles large volumes of scheduled jobs
  • Provides management UI under WooCommerce → Status → Scheduled Actions

Fallback: WP-Cron

If Action Scheduler is not available, PredictCart uses WordPress's built-in wp_schedule_single_event.

Limitations:

  • Only fires on site traffic
  • Less reliable for time-sensitive automations

Managing Scheduled Automations

From the admin Automations page:

  • Schedule — set a future date/time for an automation
  • Unschedule — cancel a previously scheduled run
  • View scheduled jobs — see upcoming scheduled runs

Use Cases

Use CaseConfiguration
Flash sale startSchedule coupon application at a specific time
Abandoned cart follow-upSchedule email 24 hours after cart update
Weekly promotionSchedule recurring webhook call