我正在调用一个Google云函数,它返回一个实现google.longrunning.Operations
接口的Operation
对象。我想从另一个Python进程轮询这个操作,这个进程只接收操作名(不能访问操作对象本身)。所以我需要这样的东西:
operation = getOperation(operationName)
isdone = operation.done()
阿菲,你不能做上面的第一步。我在这里没找到:https://google-cloud-python.readthedocs.io/en/stable/core/operation.html
我想做文档中关于google.longrunning
接口(https://cloud.google.com/speech-to-text/docs/reference/rpc/google.longrunning#google.longrunning.Operations.GetOperation)的说明:
其中GetOperationRequest
只需要操作名。有没有办法使用google-cloud-python
库中的函数“重新创建”操作?在
您可以使用"Long-Running Operations Client"的^{} 方法:
相关问题 更多 >
编程相关推荐