我正在编写一个需要在后台执行PHP脚本的Web应用程序。队列问题是它一次只能处理一个队列。我的问题是,我如何让Beanstalk同时处理更多作业,或者如何在后台执行我的脚本,直到用户手动停止它为止。我使用的是Laravel 4,所以我拥有所有这些方法。 在此先感谢。 该API无法帮助我btw。 <?php
class Workers {
public function fire($
我正在使用Gearman的后台任务。 如果你的代码示例在http://www.php.net/manual/en/gearmanclient.addtaskstatus.php阅读,你会看到如下评论: /* Poll the server to see when those background jobs finish; */
/* a better method would be to use