Automattic / Cron-Control

A fresh take on running WordPress's cron system, allowing parallel processing

Home Page:https://wordpress.org/plugins/wp-cron-control/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI: provide option to run all events with a given action

ethitter opened this issue · comments

wp cron-control events run only accepts a single ID, leaving no way to run all jobs with a given action. Like the delete command, run should accept either an ID or an action.

I think we should just lean on WP CLI where it fits the need, especially w/ the new filters in place.

wp cron event run example_action [--due-now] is good. The downside is that it'll call _get_cron_array() to first fetch all events, but even with thousands of events that isn't really an issue under the system.