Action Scheduler

Descrição

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:

Credits

Action Scheduler is developed and maintained by Automattic with significant early development completed by Flightless.

Collaboration is cool. We’d love to work with you to improve Action Scheduler. Pull Requests welcome.

Avaliações

28 de outubro de 2021
How Action Scheduler only has two reviews is beyond me, though I guess I more typically use it as a library within whatever I'm developing rather than as an actual plugin. Regardless, Action Scheduler is awesome and an absolutely vital contribution to the WordPress community. It's really the only good way to reliably get intensive, bulk recurring actions happening with useful reporting on if scheduled events are happening and such. WAY better than trying to leverage WP's native "wp-cron" task scheduling system. Documentation is good too. What more could you ask?
Leia todas as 3 avaliações

Colaboradores e desenvolvedores

“Action Scheduler” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

“Action Scheduler” foi traduzido para 1 localização. Agradecemos aos tradutores por suas contribuições.

Traduzir “Action Scheduler” para o seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.

Registro de alterações

3.4.0 – 2021-10-29

  • Enhancement – Number of items per page can now be set for the Scheduled Actions view (props @ovidiul). #771
  • Fix – Do not lower the max_execution_time if it is already set to 0 (unlimited) (props @barryhughes). #755
  • Fix – Avoid triggering autoloaders during the version resolution process (props @olegabr). #731 & #776
  • Dev – ActionScheduler_wcSystemStatus PHPCS fixes (props @ovidiul). #761
  • Dev – ActionScheduler_DBLogger.php PHPCS fixes (props @ovidiul). #768
  • Dev – Fixed phpcs for ActionScheduler_Schedule_Deprecated (props @ovidiul). #762
  • Dev – Improve actions table indicies (props @glagonikas). #774 & #777
  • Dev – PHPCS fixes for ActionScheduler_DBStore.php (props @ovidiul). #769 & #778
  • Dev – PHPCS Fixes for ActionScheduler_Abstract_ListTable (props @ovidiul). #763 & #779
  • Dev – Adds new filter action_scheduler_claim_actions_order_by to allow tuning of the claim query (props @glagonikas). #773
  • Dev – PHPCS fixes for ActionScheduler_WpPostStore class (props @ovidiul). #780

3.3.0 – 2021-09-15

  • Enhancement – Adds as_has_scheduled_action() to provide a performant way to test for existing actions. #645
  • Fix – Improves compatibility with environments where NO_ZERO_DATE is enabled. #519
  • Fix – Adds safety checks to guard against errors when our database tables cannot be created. #645
  • Dev – Now supports queries that use multiple statuses. #649
  • Dev – Minimum requirements for WordPress and PHP bumped (to 5.2 and 5.6 respectively). #723

3.2.1 – 2021-06-21

  • Fix – Add extra safety/account for different versions of AS and different loading patterns. #714
  • Fix – Handle hidden columns (Tools → Scheduled Actions) | #600.

3.2.0 – 2021-06-03

  • Fix – Add “no ordering” option to as_next_scheduled_action().
  • Fix – Add secondary scheduled date checks when claiming actions (DBStore) | #634.
  • Fix – Add secondary scheduled date checks when claiming actions (wpPostStore) | #634.
  • Fix – Adds a new index to the action table, reducing the potential for deadlocks (props: @glagonikas).
  • Fix – Fix unit tests infrastructure and adapt tests to PHP 8.
  • Fix – Identify in-use data store.
  • Fix – Improve test_migration_is_scheduled.
  • Fix – PHP notice on list table.
  • Fix – Speed up clean up and batch selects.
  • Fix – Update pending dependencies.
  • Fix – [PHP 8.0] Only pass action arg values through to do_action_ref_array().
  • Fix – [PHP 8] Set the PHP version to 7.1 in composer.json for PHP 8 compatibility.
  • Fix – add is_initialized() to docs.
  • Fix – fix file permissions.
  • Fix – fixes #664 by replacing __ with esc_html__.