Project

General

Profile

Actions

Bug #17672

closed

Throttle "action_scheduler_run_queue" jobs

Added by Raymond Hoh about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Cavalcade
Target version:
Start date:
2023-02-15
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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.

Actions #1

Updated by Raymond Hoh about 1 year ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF