]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Cron.php
Hook calls can now be forked into a worker queue entry
[friendica.git] / src / Worker / Cron.php
index ad7b4b7f1a5fa8bdd3b41745255c0a36cf41b2d5..6f4c20a8e869385b0d0c18bce3e1d1844b1d35d7 100644 (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");