Hook calls can now be forked into a worker queue entry

This commit is contained in:
Michael 2018-02-06 22:52:36 +00:00
parent 66e3c1836e
commit 47d165cb25
9 changed files with 47 additions and 68 deletions

View file

@ -40,6 +40,9 @@ Class Cron {
logger('cron: start');
// Fork the cron jobs in separate parts to avoid problems when one of them is crashing
Addon::ForkHooks($a->queue['priority'], "cron");
// run queue delivery process in the background
Worker::add(PRIORITY_NEGLIGIBLE, "Queue");