]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateContacts.php
add the new CheckRelMeProfileLink class to the worker
[friendica.git] / src / Worker / UpdateContacts.php
index 31426e79f22245c9ef65210f5d4a49b1d3d29e6b..ed4a9932f134aa3ed688e4292a4ebff809da73ec 100644 (file)
@@ -59,9 +59,10 @@ class UpdateContacts
                $contacts = DBA::select('contact', ['id'], $condition, ['order' => ['next-update'], 'limit' => $limit]);
                $count = 0;
                while ($contact = DBA::fetch($contacts)) {
-                       if (Worker::add(['priority' => PRIORITY_LOW, 'dont_fork' => true], "UpdateContact", $contact['id'])) {
+                       if (Worker::add(['priority' => Worker::PRIORITY_LOW, 'dont_fork' => true], "UpdateContact", $contact['id'])) {
                                ++$count;
                        }
+                       Worker::coolDown();
                }
                DBA::close($contacts);