问题
I'm doing gearman in symfony2 using gearman bundle. I have completed all steps before the last step Requesting client jobs
. The doesn't return anything. Page continuously loading..
$gearman = $this->getContainer()->get('gearman');
$gearman->doJob('MmoreramerinoGearmanBundleWorkers~testB');
But when i run the code using callJob
instead of doJob
, It returned some integer number. It is increase by one for refreshing a page.
来源:https://stackoverflow.com/questions/13193103/requesting-client-jobs-in-gearman-bundle-in-symfony2