mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Merge pull request #445 from annando/new-worker
Support for the new worker class
This commit is contained in:
commit
42eefed6e6
2 changed files with 8 additions and 4 deletions
|
@ -5,6 +5,9 @@
|
|||
* Version: 0.2
|
||||
* Author: Michael Vogel <http://pirati.ca/profile/heluecht>
|
||||
*/
|
||||
|
||||
use Friendica\Core\Worker;
|
||||
|
||||
require('addon/pumpio/oauth/http.php');
|
||||
require('addon/pumpio/oauth/oauth_client.php');
|
||||
require_once('include/enotify.php');
|
||||
|
@ -691,8 +694,7 @@ function pumpio_sync(&$a) {
|
|||
}
|
||||
|
||||
function pumpio_cron(&$a,$b) {
|
||||
//pumpio_sync($a);
|
||||
proc_run("php","addon/pumpio/pumpio_sync.php");
|
||||
Worker::add(PRIORITY_MEDIUM,"addon/pumpio/pumpio_sync.php");
|
||||
}
|
||||
|
||||
function pumpio_fetchtimeline(&$a, $uid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue