Created
January 25, 2021 17:57
-
-
Save iht/dda4edef69678a882c4c4b0779afe674 to your computer and use it in GitHub Desktop.
Relay your custom runtime options to Dataflow, assuming you use Flex Templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def run_pipeline(argv): | |
opts: PipelineOptions = PipelineOptions(argv) | |
gcloud_opts: GoogleCloudOptions = opts.view_as(GoogleCloudOptions) | |
if opts.i_want_streaming_engine: | |
gcloud_opts.enable_streaming_engine = True | |
else: | |
gcloud_opts.enable_streaming_engine = False | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment