Skip to content

The Advanced Cron Scheduler for WordPress plugin helps to easily migrate Native WordPress Cron to the Action Scheduler Library.

License

Notifications You must be signed in to change notification settings

iamsayan/advanced-cron-scheduler

Repository files navigation

Advanced Cron Scheduler for WordPress

The Advanced Cron Scheduler for WordPress plugin helps to easily replace or migrate Native WordPress Cron to the Action Scheduler Library.

The WP-Cron system in WordPress is not a "real" cron system, which means events may not run exactly according to their schedule because the system relies on regular traffic to the website in order to trigger scheduled events.

Reasons WP-Cron events can miss their schedule

  • Low traffic websites may not trigger the event runner often enough
  • A fatal error caused by a plugin or theme may break the event runner
  • A plugin or theme may intentionally or unintentionally break the event runner
  • BasicAuth, a firewall, or other access restrictions may block the event runner
  • A problem with your web hosting or web server may break the event runner
  • The DISABLE_WP_CRON configuration constant is set but no alternative cron runner has been put in place
  • Long-running events may temporarily block the event runner
  • High traffic websites may suffer from sequential processing issues that block the event runner

The Advanced Cron Scheduler for WordPress plugin does alter the way that WordPress core runs cron events using the Action Scheduler Library.

Action Scheduler is a scalable, traceable job queue for background processing large sets of actions in WordPress. It's specially designed to be distributed in WordPress plugins.

Action Scheduler works by triggering an action hook to run at some time in the future. Each hook can be scheduled with unique data, to allow callbacks to perform operations on that data. The hook can also be scheduled to run on one or more occassions.

Think of it like an extension to do_action() which adds the ability to delay and repeat a hook.

Battle-Tested Background Processing

Every month, Action Scheduler processes millions of payments for Subscriptions, webhooks for WooCommerce, as well as emails and other events for a range of other plugins.

It's been seen on live sites processing queues in excess of 50,000 jobs and doing resource intensive operations, like processing payments and creating orders, at a sustained rate of over 10,000 / hour without negatively impacting normal site operations.

This is all on infrastructure and WordPress sites outside the control of the plugin author.

If your plugin needs background processing, especially of large sets of tasks, Action Scheduler can help.

Learn More

To learn more about how to Action Scheduler works, and how to use it in your plugin, check out the docs on ActionScheduler.org.

There you will find:

Support

Contribute

Credits

Action Scheduler is developed and maintained by Automattic.

Changelog

View Changelog