如何删除gcloud Dataflow作业?

Vij*_*raj 13 google-cloud-dataflow

Dataflow作业在我的仪表板上杂乱无章,我想从我的项目中删除失败的作业.但是在仪表板中,我没有看到任何删除Dataflow作业的选项.我至少在寻找类似下面的东西,

$ gcloud beta dataflow jobs delete JOB_ID
Run Code Online (Sandbox Code Playgroud)

要删除所有工作,

$ gcloud beta dataflow jobs delete
Run Code Online (Sandbox Code Playgroud)

有人可以帮我这个吗?

Gra*_*ley 7

不幸的是,这目前不可能。您无法删除数据流作业。您可以通过公共问题跟踪器请求此内容(我过去也希望如此)。

gcloud dataflow jobs --help

指令

COMMAND是以下之一:

 cancel
    Cancels all jobs that match the command line arguments.

 describe
    Outputs the Job object resulting from the Get API.

 drain
    Drains all jobs that match the command line arguments.

 list
    Lists all jobs in a particular project.

 run
    Runs a job from the specified path.

 show
    Shows a short description of the given job.
Run Code Online (Sandbox Code Playgroud)

  • 可以在此处跟踪此功能 https://issuetracker.google.com/110798648 为线程(在左上角)加注星标以获取实现的自动更新。 (2认同)