Gearman worker客户端_id python

2024-10-01 17:29:11 发布

您现在位置:Python中文网/ 问答频道 /正文

这是什么命令GearmanWorker.set_客户端_id(客户机号)? http://packages.python.org/gearman/worker.html#gearman.worker.GearmanWorker.set_client_id

这意味着工作线程只为具有指定id的客户端提供服务? 如果是,我怎样才能找到客户的身份证


Tags: org命令clientidhttp客户端客户机客户
1条回答
网友
1楼 · 发布于 2024-10-01 17:29:11

来自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)不支持这个设置,仍然可以完全使用。在

相关问题 更多 >

    热门问题