From ab0fdcd2cdf5ffc9fd3ea20877377e57c45c18ac Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 3 Mar 2019 04:47:16 +0000 Subject: [PATCH] Force priority for Twitter synchronisation --- twitter/twitter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.5