Bug #14276
closedIncrease number of workers in Cavalcade
0%
Description
I wanted to check in on how Cavalcade was doing since the upgrade in #12240 and it looks like we are running into a backlog again.
Backlog was 1 hour behind, but I'm working to temporarily address this by removing some of the older items as mentioned in #12240. What this means is Cavalcade's workers cannot get through the job queue fast enough.
Boone, I think we might want to increase the number of workers used by Cavalcade. Currently, that number is set to 4 by default:
https://github.com/humanmade/Cavalcade-Runner/blob/0dfb42d505e9cd870a11366c49ee680d327c961a/inc/class-runner.php#L36
Perhaps 6 or 8 workers might be preferable. If we wanted to change this, we would need to do this at the /bin/
script level. In the sample script provided by Cavalcade, that would be here:
https://github.com/humanmade/Cavalcade-Runner/blob/0dfb42d505e9cd870a11366c49ee680d327c961a/bin/cavalcade#L30
The other way to address this is by patching the runner so it doesn't use the last updated nextrun
timestamp with the interval as it does now when rescheduling jobs. See https://github.com/humanmade/Cavalcade-Runner/issues/51.
A workaround is to schedule a task to purge older waiting
jobs that reschedule every hour or less than an hour on a daily or twice-daily basis.
Related issues