Location: PHPKode > scripts > Shard-Query > shard-query/worker.php
#!/usr/bin/php
<?php

require_once 'Net/Gearman/Worker.php';
try {
    $worker = new Net_Gearman_Worker('localhost:7000');
    $worker->addAbility('store_resultset');
    $worker->addAbility('fetch_resultset');
    $worker->beginWork();
} catch (Net_Gearman_Exception $e) {
    echo $e->getMessage() . "\n";
    exit;
}


?>
Return current item: Shard-Query