问题描述
我正在尝试将 laelaps gearman 包用于 symfony。 https://github.com/laelaps/symfony-gearman-bundle 它运行。但是,我如何将工作量传递给工作?
如果我尝试:
$this->getContainer()->get('laelaps.gearman.client')->dobackground('example_job_name',> $optionalWorkload = 'this is a testdata');
我无法在我的工作中得到它
/**
* @Gearman\PointOfEntry(name="example_job_name")
* @param GearmanJob $job
* @param Symfony\Component\Console\Output\OutputInterface $output
* @return boolean returning false means job failure
*/
public function doExampleJob(GearmanJob $job,OutputInterface $output)
{
// do your job
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)