Bug #17672
closedThrottle "action_scheduler_run_queue" jobs
0%
Description
While debugging Cavalcade, I came across recurring jobs with the 'action_scheduler_run_queue'
hook. This hook comes from a background processing library called Action Scheduler and runs every minute. Two of our plugins use Action Scheduler: 'the-events-calendar'
and 'widget-for-eventbrite-api'
.
For 'the-events-calendar'
, they use Action Scheduler for their migration process to v6: https://theeventscalendar.com/knowledgebase/k/migrating/. 'widget-for-eventbrite-api'
appears to use Action Scheduler for syncing Eventbrite events and runs roughly daily by default: https://github.com/cuny-academic-commons/cac/blob/2f43076fd7e31903a6d1ce498188cf6a755e1a61/wp-content/plugins/widget-for-eventbrite-api/includes/class-eventbrite-manager.php#L428.
Since both of these plugins do not appear to require running a job every minute, I'm going to throttle Action Scheduler to run every fifteen minutes instead. Could look to bump the interval to thirty minutes or hourly if we wanted to decrease the load on Cavalcade.