Open breath-co2 opened 8 years ago
code:
$gmWorker = new GearmanWorker(); $gmWorker->setId("myid"); $gmWorker->addServers('192.168.1.2,192.168.1.3'); $gmWorker->addFunction('test', function() { //... }); while (@$gmWorker->work()) { if ($gmWorker->returnCode() !== GEARMAN_SUCCESS) { break; } }
bugs:
code:
bugs: