Php 来自Gearman worker的流式输出日志

Php 来自Gearman worker的流式输出日志,php,stream,queue,gearman,Php,Stream,Queue,Gearman,我正在构建一个Gearman作业,该作业使用实时输出流STDOUT执行命令。我正在使用PHP 我的RESTAPI需要返回一个临时URL,客户端可以连接到该URL以查看输出 REST API call. creates Gearman background job return 'http://example.com/status?job=123' HTTP call to status?123 disables cache output output from

我正在构建一个Gearman作业,该作业使用实时输出流STDOUT执行命令。我正在使用PHP

我的RESTAPI需要返回一个临时URL,客户端可以连接到该URL以查看输出

REST API call.
    creates Gearman background job
    return 'http://example.com/status?job=123'


HTTP call to status?123
    disables cache
    output output from job produced so far
    reads and flushes any further output
到目前为止,我发现的唯一方法是使用jobStatus,但它只提供进度信息。我也不想引入昂贵的数据库拉取技术

这可以在Gearman或其他服务器上以简单的方式完成吗?如果有其他队列实现可以与PHP一起使用?

jobStatus是检索作业状态信息的唯一方法。如果要发送其他数据,可以从作业函数写入memcache,然后在作业信息页面上检索信息