Requesting client jobs in Gearman bundle in symfony2

若如初见. 提交于 2020-01-06 19:35:37

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!