forked from friendica/friendica-addons
Merge pull request #819 from annando/enforce-priority
Enforce priority for Twitter synchronisation
This commit is contained in:
commit
812788ae07
1 changed files with 2 additions and 2 deletions
|
@ -739,7 +739,7 @@ function twitter_cron(App $a)
|
||||||
if (DBA::isResult($r)) {
|
if (DBA::isResult($r)) {
|
||||||
foreach ($r as $rr) {
|
foreach ($r as $rr) {
|
||||||
Logger::log('twitter: fetching for user ' . $rr['uid']);
|
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']);
|
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
|
// To-Do
|
||||||
// check for new contacts once a day
|
// check for new contacts once a day
|
||||||
|
|
Loading…
Reference in a new issue