Repository navigation
[Python] Don't override the Dataflow endpoint by default #40568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5392a2d
8e42f4b
53a18ab
b2715db
5fbce4b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1038,10 +1038,12 @@ class GoogleCloudOptions(PipelineOptions): | |||||
| def _add_argparse_args(cls, parser): | ||||||
| parser.add_argument( | ||||||
| '--dataflow_endpoint', | ||||||
| default=cls.DATAFLOW_ENDPOINT, | ||||||
| default='', | ||||||
| help=( | ||||||
| 'The URL for the Dataflow API. If not set, the default public URL ' | ||||||
| 'will be used.')) | ||||||
| 'The URL for the Dataflow API. If not set, the endpoint is ' | ||||||
| 'resolved by the Google Cloud client library, which honors ' | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For my education:
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The control flow happens in Dataflow Client Library. Particularly, it is when we initialize For example, you can find the logic in
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
seems to be the official name from https://docs.cloud.google.com/python/docs/reference/dataflow/latest
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #40568 (comment) |
||||||
| 'GOOGLE_CLOUD_UNIVERSE_DOMAIN and otherwise uses the default ' | ||||||
| 'public URL (%s).' % cls.DATAFLOW_ENDPOINT)) | ||||||
| # Remote execution must check that this option is not None. | ||||||
| parser.add_argument( | ||||||
| '--project', | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Google Cloud client library is the official term of that.
https://docs.cloud.google.com/apis/docs/cloud-client-libraries