如何删除gcloud Dataflow作业?

时间:2021-03-15 15:23:41

The Dataflow jobs are cluttered all over my dashboard, and I'd like to delete the failed jobs from my project. But in the dashboard, I don't see any option to delete the Dataflow job. I'm looking for something like below at least,

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

$ gcloud beta dataflow jobs delete JOB_ID

To delete all jobs,

要删除所有工作,

$ gcloud beta dataflow jobs delete

Can someone please help me with this?

有人可以帮我这个吗?

2 个解决方案

#1


0  

Unfortunately, this is not currently possible. You cannot delete a Dataflow job. This is something that you could request via the public issue tracker (I've wanted it in the past too).

不幸的是,这目前还不可行。您无法删除Dataflow作业。这是你可以通过公共问题跟踪器请求的东西(我过去也想要它)。

gcloud dataflow jobs --help

gcloud dataflow jobs --help

COMMANDS

COMMANDS

COMMAND is one of the following:

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.

#2


0  

As Graham mentions, it is not possible to delete Dataflow jobs. However, note that you can filter the job list to only show the jobs you care about. For example, Status:Running,Succeeded will exclude all failed or cancelled jobs.

正如Graham所提到的,无法删除Dataflow作业。但请注意,您可以过滤作业列表以仅显示您关注的作业。例如,Status:Running,Succeeded将排除所有失败或取消的作业。

如何删除gcloud Dataflow作业?

On the commandline, you can use --status=(active|terminated|all):

在命令行上,您可以使用--status =(active | terminated | all):

gcloud beta dataflow jobs list --status=active

#1


0  

Unfortunately, this is not currently possible. You cannot delete a Dataflow job. This is something that you could request via the public issue tracker (I've wanted it in the past too).

不幸的是,这目前还不可行。您无法删除Dataflow作业。这是你可以通过公共问题跟踪器请求的东西(我过去也想要它)。

gcloud dataflow jobs --help

gcloud dataflow jobs --help

COMMANDS

COMMANDS

COMMAND is one of the following:

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.

#2


0  

As Graham mentions, it is not possible to delete Dataflow jobs. However, note that you can filter the job list to only show the jobs you care about. For example, Status:Running,Succeeded will exclude all failed or cancelled jobs.

正如Graham所提到的,无法删除Dataflow作业。但请注意,您可以过滤作业列表以仅显示您关注的作业。例如,Status:Running,Succeeded将排除所有失败或取消的作业。

如何删除gcloud Dataflow作业?

On the commandline, you can use --status=(active|terminated|all):

在命令行上,您可以使用--status =(active | terminated | all):

gcloud beta dataflow jobs list --status=active