miniflux-legacy/worker.php
2016-05-01 22:03:21 -04:00

15 lines
327 B
PHP

<?php
use Pheanstalk\Pheanstalk;
require __DIR__.'/common.php';
$connection = new Pheanstalk(BEANSTALKD_HOST);
while ($job = $connection->reserveFromTube(BEANSTALKD_QUEUE)) {
$feed_id = $job->getData();
echo 'Processing feed_id='.$feed_id.PHP_EOL;
Model\Feed\refresh($feed_id);
$connection->delete($job);
}