【发布时间】:2022-06-16 03:31:59
【问题描述】:
我正在使用 gcloud 运行 detect-text-pdf:
$ gcloud ml vision detect-text-pdf gs://my-bucket/pdfs/D.pdf gs://my-bucket/pdfs/D
导致如下输出:
{
"name": "projects/PROJECT_ID/operations/OPERATION_ID"
}
其中PROJECT_ID 是项目,OPERATION_ID 是十六进制数字。
如何等待操作完成? 我试过了:
gcloud services operations wait OPERATION_ID
但我得到了错误:
ERROR: gcloud crashed (ArgumentTypeError): Invalid value 'OPERATION_ID': Operation format should be operations/namespace.id
如果这有帮助,我正在使用 colab 笔记本运行。
【问题讨论】:
-
你试过
gcloud services operations wait operations/OPERATION_ID吗? -
@DazWilkin 谢谢!。是的,我试过了 - 结果相同(崩溃)
-
@lazy1 您能否编辑您的问题并分享您用来拥有minimal code that reproduces the problem的代码
-
@RogelioMonter 你是对的!完成。
标签: google-colaboratory gcloud