15 lines
327 B
PHP
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);
|
|
}
|