2012-06-08 35 views

回答

0

Gearman protocol文档:

SET_CLIENT_ID 

    This sets the worker ID in a job server so monitoring and reporting 
    commands can uniquely identify the various workers, and different 
    connections to job servers from the same worker. 

所以它没有任何与工作人员与客户的关系。这只能通过客户端传递和工作人员注册的函数句柄来处理。这个ID可能在管理命令的输出中看到,可以帮助您调试/监视您的应用程序。事实上,一些接口(例如PHP)不支持这种设置,并且仍然完全可用。