Configuration

Cron Management (Automation & Scheduled Tasks)

Estimated reading: 2 minutes 44 views

The Cron Management system allows you to monitor, clean, and automate background tasks running in your platform.

It helps you:

  • Maintain performance
  • Clean unnecessary cron jobs
  • Manage scheduled tasks
  • Prevent database overload

๐Ÿ‘‰ Essential for large OTT platforms with high activity

๐Ÿ“Š Overview Dashboard

At the top of the page, you can monitor cron activity in real time.

๐Ÿ“ฆ Metrics

MetricDescription
Total Cron EventsTotal scheduled tasks
Action Scheduler EventsTasks handled by Action Scheduler
Pending ActionsTasks waiting to execute
Completed ActionsSuccessfully executed tasks

๐Ÿงน Cleanup Actions

This section helps you remove unnecessary cron events.

โš™๏ธ Available Actions

ActionDescription
Clean Orphaned EventsRemove broken or unused cron jobs
Clean Action SchedulerClean scheduled task queue
Limit EventsSet maximum number of stored cron events

โš ๏ธ Important

  • Marked as Destructive โ†’ cannot be undone
  • Always backup database before cleanup

๐Ÿ—„ Action Scheduler Cleanup

Used to manage database-level scheduled actions.

๐Ÿ“ฆ Cleanup Options

OptionDescription
Delete Completed ActionsRemove completed tasks
Delete Failed ActionsRemove failed tasks
Delete Actions Older Than X DaysClean old records automatically

๐Ÿ‘‰ Helps reduce database size and improve performance.

๐Ÿ“ฆ Settings

SettingDescription
Automatic CleanupEnable scheduled cleanup
Cleanup FrequencyDaily / Weekly / Monthly
Maximum Cron EventsLimit stored events
Delete Actions Older Than (Days)Auto-delete old tasks

๐Ÿ” What is WP Cron?

WordPress uses WP-Cron to run scheduled background tasks such as:

  • Sending emails
  • Processing payments
  • Updating subscriptions
  • Cleaning temporary data

๐Ÿ‘‰ Over time, these tasks accumulate and can slow down your site.

โš™๏ธ How It Works

User action / system trigger
โ†“
Cron job scheduled
โ†“
Task runs in background
โ†“
Stored in database
โ†“
Cleanup removes old/unnecessary tasks

๐ŸŽฏ Use Cases

  • Clean old transaction logs
  • Remove expired subscriptions data
  • Optimize database performance
  • Prevent cron overflow
  • Maintain system health

๐Ÿง  Best Practices

  • Enable Automatic Cleanup
  • Set the cleanup frequency to Daily or Weekly
  • Limit cron events (e.g., 500โ€“1000 max)
  • Delete actions older than 30 days
  • Regularly monitor pending actions

โš ๏ธ Important Notes

  • WP-Cron depends on site traffic (not real cron)
  • Low-traffic sites may delay execution
  • Use server cron for high-performance setups
  • Always back up before bulk cleanup
Share this Doc

Cron Management (Automation & Scheduled Tasks)

Or copy link

CONTENTS