From: Michael Date: Sun, 3 Mar 2019 04:47:16 +0000 (+0000) Subject: Force priority for Twitter synchronisation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab0fdcd2cdf5ffc9fd3ea20877377e57c45c18ac;p=friendica-addons.git Force priority for Twitter synchronisation --- diff --git a/twitter/twitter.php b/twitter/twitter.php index 66fe1bf6..e343dd24 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -739,7 +739,7 @@ function twitter_cron(App $a) if (DBA::isResult($r)) { foreach ($r as $rr) { Logger::log('twitter: fetching for user ' . $rr['uid']); - Worker::add(PRIORITY_MEDIUM, "addon/twitter/twitter_sync.php", 1, (int) $rr['uid']); + Worker::add(['priority' => PRIORITY_MEDIUM, 'force_priority' => true], "addon/twitter/twitter_sync.php", 1, (int) $rr['uid']); } } @@ -762,7 +762,7 @@ function twitter_cron(App $a) } Logger::log('twitter: importing timeline from user ' . $rr['uid']); - Worker::add(PRIORITY_MEDIUM, "addon/twitter/twitter_sync.php", 2, (int) $rr['uid']); + Worker::add(['priority' => PRIORITY_MEDIUM, 'force_priority' => true], "addon/twitter/twitter_sync.php", 2, (int) $rr['uid']); /* // To-Do // check for new contacts once a day