gcloud dataflow jobs drain

NAME
gcloud dataflow jobs drain - drains all jobs that match the command line arguments
SYNOPSIS
gcloud dataflow jobs drainJOB_ID[JOB_ID …][--region=REGION_ID][GCLOUD_WIDE_FLAG]
DESCRIPTION
Once Drain is triggered, the pipeline will stop accepting new inputs. The inputwatermark will be advanced to infinity. Elements already in the pipeline willcontinue to be processed. Drained jobs can safely be cancelled.
POSITIONAL ARGUMENTS
JOB_ID [JOB_ID …]
Job IDs to operate on.
FLAGS
--region=REGION_ID
Region ID of the jobs' regional endpoint. Defaults to 'us-central1'.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

NOTES
This variant is also available:
gcloudbetadataflowjobsdrain

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.