您如何通过gcloud api消耗数据流作业?

编程入门 行业动态 更新时间:2024-10-25 02:21:42
本文介绍了您如何通过gcloud api消耗数据流作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以通过gcloud api耗尽正在运行的数据流作业?具体来说,是否有此功能的python实现或请求结构的文档,以便可以实现?能够在不使用cli的情况下自动执行排空并重新配置数据流流作业会很好.

Is it possible to drain a running dataflow job through the the gcloud api? Specifically is there a python implementation of this, or documentation of the request structure so that it can be implemented? It would be nice to be able to automate draining, and reconfiguring dataflow streaming jobs without the use of the cli.

推荐答案

我能够通过 Rest Update API 感谢此类似答案

POST更新请求的正文:

Body for POST Update request:

{"requestedState":"JOB_STATE_DRAINING"}

{ "requestedState": "JOB_STATE_DRAINING" }

更多推荐

您如何通过gcloud api消耗数据流作业?

本文发布于:2023-11-24 08:51:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624541.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:作业   数据流   消耗   gcloud   api

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!