Polber commented on code in PR #29989:
URL: https://github.com/apache/beam/pull/29989#discussion_r1450860232
##########
sdks/python/apache_beam/yaml/yaml_transform.py:
##########
@@ -963,10 +963,13 @@ def expand(self, pcolls):
self._spec['input'] = {name: name for name in pcolls.keys()}
python_provider = yaml_provider.InlineProvider({})
+ # Label goog-dataflow-yaml if job is started using Beam YAML.
options = pipeline.options.view_as(GoogleCloudOptions)
+ yaml_version = (
+ 'goog-dataflow-yaml=' + beam.version.__version__.replace('.', '_'))
if not options.labels:
options.labels = []
- options.labels += ["yaml=true"]
+ options.labels.append(yaml_version)
Review Comment:
Good point, fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]