{"id":192954,"date":"2021-08-08T11:52:42","date_gmt":"2021-08-08T18:52:42","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=192954"},"modified":"2021-08-08T12:08:01","modified_gmt":"2021-08-08T19:08:01","slug":"cancel-a-dataflow-job-in-google-cloud-platform-gcp","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/cancel-a-dataflow-job-in-google-cloud-platform-gcp\/","title":{"rendered":"Cancel a dataflow job in Google Cloud Platform (GCP)"},"content":{"rendered":"<p>Google Cloud Dataflow is data processing service that can be used for streaming and batch applications. Users can setup pipelines in Dataflow to integrate and process large datasets.<\/p>\n<p>With pub\/sub, users can setup dataflow pipelines to write messages from a pub\/sub topic or subscription to a BigQuery table.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-iot-cloud-tester\/\">IoT Cloud Tester<\/a>&nbsp; application provides an easy interface to cancel a dataflow job in Google Cloud Platform.<\/p>\n<h1>To cancel a dataflow job in Google Cloud,<\/h1>\n<ul>\n<li>Get the list of dataflow jobs by clicking &#8216;List Jobs&#8217; in the &#8216;Dataflow&#8217; tab.<\/li>\n<li>Select a job and press &#8216;Cancel Job&#8217;<\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/delete_job.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-192960\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/delete_job.png\" alt=\"\" width=\"845\" height=\"726\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/delete_job.png 845w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/delete_job-300x258.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/delete_job-768x660.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/delete_job-600x516.png 600w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/a><\/p>\n<p>A PUT request is sent to GCP to cancel the dataflow job. The job ID and the requested state is sent as JSON data.<\/p>\n<p>PUT https:\/\/dataflow.googleapis.com\/v1b3\/projects\/second-inquiry-315605\/locations\/asia-east1\/jobs\/2021-08-08_08_10_53-4543477010421041882 HTTP\/1.1<\/p>\n<p>{&#8220;requestedState&#8221;:&#8221;JOB_STATE_CANCELLED&#8221;,&#8221;id&#8221;:&#8221;2021-08-08_08_10_53-4543477010421041882&#8243;}<\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/uw27ODBJOJU?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Google Cloud Dataflow is data processing service that can be used for streaming and batch applications. Users can setup pipelines in Dataflow to integrate and process large datasets. With pub\/sub, users can setup dataflow pipelines to write messages from a &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/cancel-a-dataflow-job-in-google-cloud-platform-gcp\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"iot_tutorial_template.php","meta":{"footnotes":""},"class_list":["post-192954","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=192954"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192954\/revisions"}],"predecessor-version":[{"id":192962,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192954\/revisions\/192962"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=192954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}